From f7ac06c047ff39c29a9b3bd3b057f7e5c887f0cf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 26 Oct 2011 19:27:43 +0000 Subject: [PATCH] setenv to fix testcase under other circumstances --- src/util/test_common_logging.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.25.1