aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-02-18 15:22:30 +0000
committerNathan S. Evans <evans@in.tum.de>2010-02-18 15:22:30 +0000
commite4370ebaad64a2649fc56090a4151b3cca05d0c4 (patch)
treefcdd1449083bfba96b5b3dc586ed0f6b5b2e1680 /src
parentd720cc786723169cfdbb246ad6f1f584581f589d (diff)
downloadgnunet-e4370ebaad64a2649fc56090a4151b3cca05d0c4.tar.gz
gnunet-e4370ebaad64a2649fc56090a4151b3cca05d0c4.zip
test case cleanup
Diffstat (limited to 'src')
-rw-r--r--src/util/test_os_start_process.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/util/test_os_start_process.c b/src/util/test_os_start_process.c
index a3c935aeb..8453bde05 100644
--- a/src/util/test_os_start_process.c
+++ b/src/util/test_os_start_process.c
@@ -73,6 +73,10 @@ read_call (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
73 int bytes; 73 int bytes;
74 bytes = GNUNET_DISK_file_read(stdout_read_handle, &buf, sizeof(buf)); 74 bytes = GNUNET_DISK_file_read(stdout_read_handle, &buf, sizeof(buf));
75 75
76#if VERBOSE
77 fprintf(stderr, "bytes is %d\n", bytes);
78#endif
79
76 if (bytes < 1) 80 if (bytes < 1)
77 { 81 {
78 ok = 1; 82 ok = 1;
@@ -122,7 +126,7 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
122 } 126 }
123 127
124 pid = GNUNET_OS_start_process (hello_pipe_stdin, hello_pipe_stdout, fn, 128 pid = GNUNET_OS_start_process (hello_pipe_stdin, hello_pipe_stdout, fn,
125 "test_gnunet_echo_hello", NULL); 129 "test_gnunet_echo_hello", "-", NULL);
126 130
127 /* Close the write end of the read pipe */ 131 /* Close the write end of the read pipe */
128 GNUNET_DISK_pipe_close_end(hello_pipe_stdout, GNUNET_DISK_PIPE_END_WRITE); 132 GNUNET_DISK_pipe_close_end(hello_pipe_stdout, GNUNET_DISK_PIPE_END_WRITE);
@@ -150,13 +154,7 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
150 GNUNET_SCHEDULER_add_read_file (tc->sched, 154 GNUNET_SCHEDULER_add_read_file (tc->sched,
151 GNUNET_TIME_UNIT_FOREVER_REL, 155 GNUNET_TIME_UNIT_FOREVER_REL,
152 stdout_read_handle, &read_call, (void *)stdout_read_handle); 156 stdout_read_handle, &read_call, (void *)stdout_read_handle);
153 /* Read from the cat process, hopefully get the phrase we wrote to it! */
154 157
155 /*while (read(fd_stdout, buf, strlen(test_phrase) + 1) > 0)
156 {
157 ret = strncmp(buf, test_phrase, strlen(test_phrase));
158 }
159 */
160} 158}
161 159
162/** 160/**