From b2d8799af1b09b67779df3fd71b84ec59f7e9f7e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 7 Jan 2021 10:40:01 +0100 Subject: work on #6679" --- src/benchmark/taler-exchange-benchmark.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/benchmark') diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index 08c701fd3..95789b816 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -118,7 +118,7 @@ static char *cfg_filename; /** * Exit code. */ -static int result; +static enum GNUNET_GenericReturnValue result; /** * Use the fakebank instead of the Python bank. @@ -459,7 +459,7 @@ run (void *cls, GNUNET_free (amount_4); GNUNET_free (amount_5); GNUNET_free (withdraw_fee_str); - result = 1; + result = GNUNET_OK; } @@ -546,7 +546,7 @@ parallel_benchmark (TALER_TESTING_Main main_cb, void *main_cb_cls, const char *config_file) { - int result = GNUNET_OK; + enum GNUNET_GenericReturnValue result = GNUNET_OK; pid_t cpids[howmany_clients]; pid_t fakebank = -1; int wstatus; @@ -989,6 +989,8 @@ main (int argc, argv))) { GNUNET_free (cfg_filename); + if (GNUNET_NO == result) + return 0; return BAD_CLI_ARG; } GNUNET_log_setup ("taler-exchange-benchmark", -- cgit v1.2.3