diff options
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 */ |