gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r10373 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r10373 - gnunet/src/util
Date: Thu, 18 Feb 2010 16:22:30 +0100

Author: nevans
Date: 2010-02-18 16:22:30 +0100 (Thu, 18 Feb 2010)
New Revision: 10373

Modified:
   gnunet/src/util/test_os_start_process.c
Log:
test case cleanup

Modified: gnunet/src/util/test_os_start_process.c
===================================================================
--- gnunet/src/util/test_os_start_process.c     2010-02-18 15:07:02 UTC (rev 
10372)
+++ gnunet/src/util/test_os_start_process.c     2010-02-18 15:22:30 UTC (rev 
10373)
@@ -73,6 +73,10 @@
   int bytes;
   bytes = GNUNET_DISK_file_read(stdout_read_handle, &buf, sizeof(buf));
 
+#if VERBOSE
+  fprintf(stderr, "bytes is %d\n", bytes);
+#endif
+
   if (bytes < 1)
     {
       ok = 1;
@@ -122,7 +126,7 @@
     }
 
   pid = GNUNET_OS_start_process (hello_pipe_stdin, hello_pipe_stdout, fn,
-                                 "test_gnunet_echo_hello", NULL);
+                                 "test_gnunet_echo_hello", "-", NULL);
 
   /* Close the write end of the read pipe */
   GNUNET_DISK_pipe_close_end(hello_pipe_stdout, GNUNET_DISK_PIPE_END_WRITE);
@@ -150,13 +154,7 @@
   GNUNET_SCHEDULER_add_read_file (tc->sched,
                                   GNUNET_TIME_UNIT_FOREVER_REL,
                                   stdout_read_handle, &read_call, (void 
*)stdout_read_handle);
-  /* Read from the cat process, hopefully get the phrase we wrote to it! */
 
-  /*while (read(fd_stdout, buf, strlen(test_phrase) + 1) > 0)
-    {
-      ret = strncmp(buf, test_phrase, strlen(test_phrase));
-    }
-  */
 }
 
 /**





reply via email to

[Prev in Thread] Current Thread [Next in Thread]