};
struct GNUNET_OS_Process *gns;
+ int nat_res;
+
char *const argv_prog[] = {
"test-nat-test",
"-c",
"WARNING",
#endif
NULL);
+
+ nat_res = GNUNET_OS_check_helper_binary ("gnunet-nat-server");
+ if (GNUNET_SYSERR == nat_res)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Cannot run NAT test: `%s' file not found\n",
+ "gnunet-nat-server");
+ return 0;
+ }
+
gns =
- GNUNET_OS_start_process (NULL, NULL, "gnunet-nat-server",
+ GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-nat-server",
"gnunet-nat-server",
#if VERBOSE
"-L", "DEBUG",