From: Christian Grothoff Date: Wed, 26 Oct 2011 19:27:43 +0000 (+0000) Subject: setenv to fix testcase under other circumstances X-Git-Tag: initial-import-from-subversion-38251~16206 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f7ac06c047ff39c29a9b3bd3b057f7e5c887f0cf;p=oweals%2Fgnunet.git setenv to fix testcase under other circumstances --- 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[]) unsigned int failureCount = 0; unsigned int logs = 0; + if (0 != setenv ("GNUNET_FORCE_LOG", "", 1)) + fprintf (stderr, + "Failed to setenv: %s\n", + strerror (errno)); GNUNET_log_setup ("test-common-logging", "DEBUG", "/dev/null"); GNUNET_logger_add (&my_log, &logs); GNUNET_logger_add (&my_log, &logs);