diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-26 19:27:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-26 19:27:43 +0000 |
commit | f7ac06c047ff39c29a9b3bd3b057f7e5c887f0cf (patch) | |
tree | a2f01f4e8542f6412e8df8890563e8244a5d77f7 /src/util/test_common_logging.c | |
parent | 8941e9c8c609bfa3d0943bd26f7c3f8e62df7701 (diff) | |
download | gnunet-f7ac06c047ff39c29a9b3bd3b057f7e5c887f0cf.tar.gz gnunet-f7ac06c047ff39c29a9b3bd3b057f7e5c887f0cf.zip |
setenv to fix testcase under other circumstances
Diffstat (limited to 'src/util/test_common_logging.c')
-rw-r--r-- | src/util/test_common_logging.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/test_common_logging.c b/src/util/test_common_logging.c index 6b4922c65..a940d3c07 100644 --- a/src/util/test_common_logging.c +++ b/src/util/test_common_logging.c | |||
@@ -43,6 +43,10 @@ main (int argc, char *argv[]) | |||
43 | unsigned int failureCount = 0; | 43 | unsigned int failureCount = 0; |
44 | unsigned int logs = 0; | 44 | unsigned int logs = 0; |
45 | 45 | ||
46 | if (0 != setenv ("GNUNET_FORCE_LOG", "", 1)) | ||
47 | fprintf (stderr, | ||
48 | "Failed to setenv: %s\n", | ||
49 | strerror (errno)); | ||
46 | GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null"); | 50 | GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null"); |
47 | GNUNET_logger_add (&my_log, &logs); | 51 | GNUNET_logger_add (&my_log, &logs); |
48 | GNUNET_logger_add (&my_log, &logs); | 52 | GNUNET_logger_add (&my_log, &logs); |