LRN: Mysterious patch. I don't know why calling executable with a dot
authorChristian Grothoff <christian@grothoff.org>
Sat, 5 Nov 2011 14:42:34 +0000 (14:42 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 5 Nov 2011 14:42:34 +0000 (14:42 +0000)
forces it to create a new console window (which immediately pops up
and grabs the focus, then disappears) for itself, but that is the
empirical fact. Removing the dot fixes this VERY annoying W32 bug.

src/util/test_common_logging_runtime_loglevels.c

index b5363f2e2190d492a483e70bdfa1f959ee99b8e7..5c069dc9f13d2a825292e87a7b0dfc73890aeeca 100644 (file)
@@ -315,7 +315,12 @@ runone ()
   }
 
   proc =
-      GNUNET_OS_start_process (NULL, pipe_stdout, "./test_common_logging_dummy",
+      GNUNET_OS_start_process (NULL, pipe_stdout, 
+#if MINGW
+                              "test_common_logging_dummy",
+#else
+                              "./test_common_logging_dummy",
+#endif
                                "test_common_logging_dummy", NULL);
   putenv ("GNUNET_FORCE_LOG=");
   putenv ("GNUNET_LOG=");