change test to not require . in PATH
authorChristian Grothoff <christian@grothoff.org>
Thu, 6 Oct 2011 09:02:48 +0000 (09:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 6 Oct 2011 09:02:48 +0000 (09:02 +0000)
src/util/test_common_logging_runtime_loglevels.c

index 045cb97513319de95fc70c42ac467bab6426cdfb..9a42d6aea8de24362e42cf16ef9ba7744c5aff48 100644 (file)
@@ -223,11 +223,8 @@ read_call (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 static void
 runone ()
 {
-  char *fn;
   const struct GNUNET_DISK_FileHandle *stdout_read_handle;
 
-  GNUNET_asprintf (&fn, "test_common_logging_dummy");
-
   pipe_stdout = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_NO, GNUNET_YES);
 
   if (pipe_stdout == NULL)
@@ -275,9 +272,9 @@ runone ()
   }
 
   proc =
-      GNUNET_OS_start_process (NULL, pipe_stdout, fn,
+      GNUNET_OS_start_process (NULL, pipe_stdout, 
+                              "./test_common_logging_dummy",
                                "test_common_logging_dummy", NULL);
-  GNUNET_free (fn);
   putenv ("GNUNET_FORCE_LOG=");
   putenv ("GNUNET_LOG=");