LRN: Here's a patch. See if it doesn't break anything for you.
[oweals/gnunet.git] / src / nat / test_nat_test.c
index 8f1e0344405d6c202f7765a284213a2005d7551d..c213ffa1e695e914760499f6d629d416ac33c14b 100644 (file)
@@ -102,7 +102,7 @@ main (int argc, char *const argv[])
   }
 
   gns =
-      GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-nat-server",
+      GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-nat-server",
                                "gnunet-nat-server",
                                "-c", "test_nat_test_data.conf", "12345", NULL);
   GNUNET_assert (NULL != gns);
@@ -111,6 +111,8 @@ main (int argc, char *const argv[])
   GNUNET_break (0 == GNUNET_OS_process_kill (gns, SIGTERM));
   GNUNET_break (GNUNET_OK == GNUNET_OS_process_wait (gns));
   GNUNET_OS_process_destroy (gns);
+  if (0 != ret)
+    fprintf (stderr, "NAT test failed to report success\n");
   return ret;
 }