From: Christian Grothoff Date: Thu, 6 Oct 2011 09:02:48 +0000 (+0000) Subject: change test to not require . in PATH X-Git-Tag: initial-import-from-subversion-38251~16752 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e788f53d58b5a4d46f86f5508b70bbede9e010b3;p=oweals%2Fgnunet.git change test to not require . in PATH --- diff --git a/src/util/test_common_logging_runtime_loglevels.c b/src/util/test_common_logging_runtime_loglevels.c index 045cb9751..9a42d6aea 100644 --- a/src/util/test_common_logging_runtime_loglevels.c +++ b/src/util/test_common_logging_runtime_loglevels.c @@ -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=");