setenv to fix testcase under other circumstances
authorChristian Grothoff <christian@grothoff.org>
Wed, 26 Oct 2011 19:27:43 +0000 (19:27 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 26 Oct 2011 19:27:43 +0000 (19:27 +0000)
src/util/test_common_logging.c

index 6b4922c65eff50b031a514836ada50dfd79ae406..a940d3c07a526fa231b55c0a8ba75af51f3b7693 100644 (file)
@@ -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);