summaryrefslogtreecommitdiff
path: root/src/benchmark
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-07 10:40:01 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-07 10:40:01 +0100
commitb2d8799af1b09b67779df3fd71b84ec59f7e9f7e (patch)
treeb0db537f87cc4d94374877966e87bc09d6a0d571 /src/benchmark
parent40551fa08e45fcc71f3d260478a2f9910920f27d (diff)
downloadexchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.tar.gz
exchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.tar.bz2
exchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.zip
work on #6679"
Diffstat (limited to 'src/benchmark')
-rw-r--r--src/benchmark/taler-exchange-benchmark.c8
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",