aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-08 06:04:13 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-08 06:04:13 +0100
commitaca6003d42b51e46d0786613ff3bcddc3f5c51cc (patch)
tree2168c58f21b7937859609d03a7a2e96c0ea8c50c
parent4c47cbcc5c3ebf0bc5a2bbf13b7cd5d64c765f0d (diff)
skip test if binaries are not in PATH
-rw-r--r--src/exchange-lib/test_exchange_api.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c
index ee39c1913..783bf51fb 100644
--- a/src/exchange-lib/test_exchange_api.c
+++ b/src/exchange-lib/test_exchange_api.c
@@ -3079,6 +3079,12 @@ main (int argc,
"taler-exchange-keyup",
"-c", "test_exchange_api.conf",
NULL);
+ if (NULL == proc)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed to run `taler-exchange-keyup`, is your PATH correct?\n");
+ return 77;
+ }
GNUNET_OS_process_wait (proc);
GNUNET_OS_process_destroy (proc);
proc = GNUNET_OS_start_process (GNUNET_NO,
@@ -3089,6 +3095,12 @@ main (int argc,
"-c", "test_exchange_api.conf",
"-r",
NULL);
+ if (NULL == proc)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed to run `taler-exchange-dbinit`, is your PATH correct?\n");
+ return 77;
+ }
if (GNUNET_SYSERR ==
GNUNET_OS_process_wait_status (proc,
&type,
@@ -3134,7 +3146,6 @@ main (int argc,
result = GNUNET_SYSERR;
sigpipe = GNUNET_DISK_pipe (GNUNET_NO, GNUNET_NO, GNUNET_NO, GNUNET_NO);
GNUNET_assert (NULL != sigpipe);
- sleep (30);
shc_chld = GNUNET_SIGNAL_handler_install (GNUNET_SIGCHLD,
&sighandler_child_death);
GNUNET_SCHEDULER_run (&run, NULL);