diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-03 21:10:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-03 21:10:27 +0000 |
commit | 236e47e55554310cc19b8c37c7b844d53a239f28 (patch) | |
tree | daeba73a49d600e9d7fb441fe67f32686e38415b /src/util/test_configuration.c | |
parent | f9b6dfb41e151628673595fd880318ec502ae4ed (diff) | |
download | gnunet-236e47e55554310cc19b8c37c7b844d53a239f28.tar.gz gnunet-236e47e55554310cc19b8c37c7b844d53a239f28.zip |
implementing time and size parsers for #1875
Diffstat (limited to 'src/util/test_configuration.c')
-rw-r--r-- | src/util/test_configuration.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util/test_configuration.c b/src/util/test_configuration.c index 4a993923b..9deb4fc35 100644 --- a/src/util/test_configuration.c +++ b/src/util/test_configuration.c | |||
@@ -337,6 +337,17 @@ testConfig () | |||
337 | } | 337 | } |
338 | GNUNET_free (c); | 338 | GNUNET_free (c); |
339 | 339 | ||
340 | if (GNUNET_OK != | ||
341 | GNUNET_CONFIGURATION_get_value_size (cfg, "last", "size", &l)) | ||
342 | { | ||
343 | GNUNET_break (0); | ||
344 | return 10; | ||
345 | } | ||
346 | if (l != 512 * 1024) | ||
347 | { | ||
348 | GNUNET_break (0); | ||
349 | return 11; | ||
350 | } | ||
340 | return 0; | 351 | return 0; |
341 | } | 352 | } |
342 | 353 | ||