aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-06 09:53:00 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-06 09:53:00 +0100
commitcff7a2fe5f78561bb091a96d776cc6e59fed016b (patch)
treefab671a041a7f89c03ce52ef644fb850be2f3ac9
parentfd30e4bf7ebd4d628f04e0158c527607870759d4 (diff)
downloadgnunet-cff7a2fe5f78561bb091a96d776cc6e59fed016b.tar.gz
gnunet-cff7a2fe5f78561bb091a96d776cc6e59fed016b.zip
just use cat
-rw-r--r--src/util/test_os_start_process.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/util/test_os_start_process.c b/src/util/test_os_start_process.c
index ff5021d03..435b70e1a 100644
--- a/src/util/test_os_start_process.c
+++ b/src/util/test_os_start_process.c
@@ -118,29 +118,23 @@ read_call (void *cls)
118static void 118static void
119run_task (void *cls) 119run_task (void *cls)
120{ 120{
121 char *fn;
122 const struct GNUNET_DISK_FileHandle *stdout_read_handle; 121 const struct GNUNET_DISK_FileHandle *stdout_read_handle;
123 const struct GNUNET_DISK_FileHandle *wh; 122 const struct GNUNET_DISK_FileHandle *wh;
124 123
125 GNUNET_asprintf (&fn, "cat");
126
127 hello_pipe_stdin = GNUNET_DISK_pipe (GNUNET_DISK_PF_BLOCKING_RW); 124 hello_pipe_stdin = GNUNET_DISK_pipe (GNUNET_DISK_PF_BLOCKING_RW);
128 hello_pipe_stdout = GNUNET_DISK_pipe (GNUNET_DISK_PF_BLOCKING_RW); 125 hello_pipe_stdout = GNUNET_DISK_pipe (GNUNET_DISK_PF_BLOCKING_RW);
129 if ((hello_pipe_stdout == NULL) || (hello_pipe_stdin == NULL)) 126 if ((hello_pipe_stdout == NULL) || (hello_pipe_stdin == NULL))
130 { 127 {
131 GNUNET_break (0); 128 GNUNET_break (0);
132 ok = 1; 129 ok = 1;
133 GNUNET_free (fn);
134 return; 130 return;
135 } 131 }
136 132
137 proc = 133 proc =
138 GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_ERR, 134 GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_ERR,
139 hello_pipe_stdin, hello_pipe_stdout, NULL, 135 hello_pipe_stdin, hello_pipe_stdout, NULL,
140 fn, 136 "cat",
141 "test_gnunet_echo_hello", "-", NULL); 137 "cat", "-", NULL);
142 GNUNET_free (fn);
143
144 /* Close the write end of the read pipe */ 138 /* Close the write end of the read pipe */
145 GNUNET_DISK_pipe_close_end (hello_pipe_stdout, GNUNET_DISK_PIPE_END_WRITE); 139 GNUNET_DISK_pipe_close_end (hello_pipe_stdout, GNUNET_DISK_PIPE_END_WRITE);
146 /* Close the read end of the write pipe */ 140 /* Close the read end of the write pipe */