skip test if binaries are not in PATH
This commit is contained in:
parent
4c47cbcc5c
commit
aca6003d42
@ -3079,6 +3079,12 @@ main (int argc,
|
|||||||
"taler-exchange-keyup",
|
"taler-exchange-keyup",
|
||||||
"-c", "test_exchange_api.conf",
|
"-c", "test_exchange_api.conf",
|
||||||
NULL);
|
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_wait (proc);
|
||||||
GNUNET_OS_process_destroy (proc);
|
GNUNET_OS_process_destroy (proc);
|
||||||
proc = GNUNET_OS_start_process (GNUNET_NO,
|
proc = GNUNET_OS_start_process (GNUNET_NO,
|
||||||
@ -3089,6 +3095,12 @@ main (int argc,
|
|||||||
"-c", "test_exchange_api.conf",
|
"-c", "test_exchange_api.conf",
|
||||||
"-r",
|
"-r",
|
||||||
NULL);
|
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 ==
|
if (GNUNET_SYSERR ==
|
||||||
GNUNET_OS_process_wait_status (proc,
|
GNUNET_OS_process_wait_status (proc,
|
||||||
&type,
|
&type,
|
||||||
@ -3134,7 +3146,6 @@ main (int argc,
|
|||||||
result = GNUNET_SYSERR;
|
result = GNUNET_SYSERR;
|
||||||
sigpipe = GNUNET_DISK_pipe (GNUNET_NO, GNUNET_NO, GNUNET_NO, GNUNET_NO);
|
sigpipe = GNUNET_DISK_pipe (GNUNET_NO, GNUNET_NO, GNUNET_NO, GNUNET_NO);
|
||||||
GNUNET_assert (NULL != sigpipe);
|
GNUNET_assert (NULL != sigpipe);
|
||||||
sleep (30);
|
|
||||||
shc_chld = GNUNET_SIGNAL_handler_install (GNUNET_SIGCHLD,
|
shc_chld = GNUNET_SIGNAL_handler_install (GNUNET_SIGCHLD,
|
||||||
&sighandler_child_death);
|
&sighandler_child_death);
|
||||||
GNUNET_SCHEDULER_run (&run, NULL);
|
GNUNET_SCHEDULER_run (&run, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user