diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-13 15:18:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-13 15:18:35 +0000 |
commit | 2742cca3d2180b4f615c40609fccf10a806f05c8 (patch) | |
tree | 7a59d0d43951cec4f0edd903f02ead3dbe037a2f /src/util/test_common_logging_runtime_loglevels.c | |
parent | 832d12049add37805697104b9f8eaae420eef406 (diff) | |
download | gnunet-2742cca3d2180b4f615c40609fccf10a806f05c8.tar.gz gnunet-2742cca3d2180b4f615c40609fccf10a806f05c8.zip |
-cleaning up VERBOSE and check nonsense in util tests
Diffstat (limited to 'src/util/test_common_logging_runtime_loglevels.c')
-rw-r--r-- | src/util/test_common_logging_runtime_loglevels.c | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/util/test_common_logging_runtime_loglevels.c b/src/util/test_common_logging_runtime_loglevels.c index b914ae1c6..5ad9d9860 100644 --- a/src/util/test_common_logging_runtime_loglevels.c +++ b/src/util/test_common_logging_runtime_loglevels.c | |||
@@ -351,34 +351,16 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
351 | runone (); | 351 | runone (); |
352 | } | 352 | } |
353 | 353 | ||
354 | /** | ||
355 | * Main method, starts scheduler with task1, | ||
356 | * checks that "ok" is correct at the end. | ||
357 | */ | ||
358 | static int | ||
359 | check () | ||
360 | { | ||
361 | ok = 1; | ||
362 | GNUNET_SCHEDULER_run (&task, &ok); | ||
363 | return ok; | ||
364 | } | ||
365 | |||
366 | 354 | ||
367 | int | 355 | int |
368 | main (int argc, char *argv[]) | 356 | main (int argc, char *argv[]) |
369 | { | 357 | { |
370 | int ret; | ||
371 | |||
372 | GNUNET_log_setup ("test-common-logging-runtime-loglevels", | 358 | GNUNET_log_setup ("test-common-logging-runtime-loglevels", |
373 | #if VERBOSE | ||
374 | "DEBUG", | ||
375 | #else | ||
376 | "WARNING", | 359 | "WARNING", |
377 | #endif | ||
378 | NULL); | 360 | NULL); |
379 | ret = check (); | 361 | ok = 1; |
380 | 362 | GNUNET_SCHEDULER_run (&task, &ok); | |
381 | return ret; | 363 | return ok; |
382 | } | 364 | } |
383 | 365 | ||
384 | /* end of test_common_logging_runtime_loglevels.c */ | 366 | /* end of test_common_logging_runtime_loglevels.c */ |