diff options
Diffstat (limited to 'src/util/test_common_logging.c')
-rw-r--r-- | src/util/test_common_logging.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/util/test_common_logging.c b/src/util/test_common_logging.c index 8a9b73108..e3209082b 100644 --- a/src/util/test_common_logging.c +++ b/src/util/test_common_logging.c | |||
@@ -42,13 +42,7 @@ main (int argc, char *argv[]) | |||
42 | unsigned int failureCount = 0; | 42 | unsigned int failureCount = 0; |
43 | unsigned int logs = 0; | 43 | unsigned int logs = 0; |
44 | 44 | ||
45 | /* FIXME: this causes a double free, because common_logging sets | 45 | GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null"); |
46 | * GNUNET_stderr = stderr before main() gets executed and then tries | ||
47 | * to fclose(GNUNET_stderr) in GNUNET_log_setup */ | ||
48 | fclose (stderr); | ||
49 | #ifndef MINGW | ||
50 | stderr = NULL; | ||
51 | #endif | ||
52 | GNUNET_logger_add (&my_log, &logs); | 46 | GNUNET_logger_add (&my_log, &logs); |
53 | GNUNET_logger_add (&my_log, &logs); | 47 | GNUNET_logger_add (&my_log, &logs); |
54 | GNUNET_log (GNUNET_ERROR_TYPE_BULK, "Testing...\n"); | 48 | GNUNET_log (GNUNET_ERROR_TYPE_BULK, "Testing...\n"); |