aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark/taler-exchange-benchmark.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-07-27 11:58:54 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-07-27 11:58:54 +0200
commite850dc09c49f11c4009039c53b810753e37e02c3 (patch)
tree6769921d0664dda379df48300c260b32ae908dda /src/benchmark/taler-exchange-benchmark.c
parent880ce0bdb366226a170d6646a9d41cf20a0fc542 (diff)
Make benchmark config file working.
Diffstat (limited to 'src/benchmark/taler-exchange-benchmark.c')
-rw-r--r--src/benchmark/taler-exchange-benchmark.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
index 96a9a7485..40526af33 100644
--- a/src/benchmark/taler-exchange-benchmark.c
+++ b/src/benchmark/taler-exchange-benchmark.c
@@ -320,6 +320,10 @@ int
main (int argc,
char *const *argv)
{
+
+ unsetenv ("XDG_DATA_HOME");
+ unsetenv ("XDG_CONFIG_HOME");
+
struct GNUNET_OS_Process *compute_wire_response;
struct GNUNET_CONFIGURATION_Handle *cfg;
struct GNUNET_GETOPT_CommandLineOption options[] = {
@@ -360,7 +364,7 @@ main (int argc,
GNUNET_GETOPT_OPTION_END
};
-
+
if (GNUNET_SYSERR == (result = GNUNET_GETOPT_run
("taler-exchange-benchmark",
options,
@@ -430,6 +434,7 @@ main (int argc,
(compute_wire_response);
GNUNET_assert
+ /* Takes care of dropping all tables. */
(GNUNET_OK == TALER_TESTING_prepare_exchange
(cfg_filename,
&exchange_url)); // never used, we do all via handle.