diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-01-07 10:40:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-01-07 10:40:01 +0100 |
commit | b2d8799af1b09b67779df3fd71b84ec59f7e9f7e (patch) | |
tree | b0db537f87cc4d94374877966e87bc09d6a0d571 /src/benchmark | |
parent | 40551fa08e45fcc71f3d260478a2f9910920f27d (diff) |
work on #6679"
Diffstat (limited to 'src/benchmark')
-rw-r--r-- | src/benchmark/taler-exchange-benchmark.c | 8 |
1 files changed, 5 insertions, 3 deletions
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", |