summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-11 21:06:04 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-11 21:06:04 +0200
commit88bb7f44281a9f8a9474a242f0e2557fed9da781 (patch)
tree3f2a60aab5933c3cfb351275d8b3cf75bad7382f /src
parent2d8351687168bcc7cc76320df39d329c25ee97dc (diff)
downloadexchange-88bb7f44281a9f8a9474a242f0e2557fed9da781.tar.gz
exchange-88bb7f44281a9f8a9474a242f0e2557fed9da781.tar.bz2
exchange-88bb7f44281a9f8a9474a242f0e2557fed9da781.zip
fix FTBFS
Diffstat (limited to 'src')
-rw-r--r--src/testing/test_bank_api_twisted.c28
-rw-r--r--src/testing/test_exchange_api_twisted.c1
2 files changed, 24 insertions, 5 deletions
diff --git a/src/testing/test_bank_api_twisted.c b/src/testing/test_bank_api_twisted.c
index c2382db96..d8687e971 100644
--- a/src/testing/test_bank_api_twisted.c
+++ b/src/testing/test_bank_api_twisted.c
@@ -121,6 +121,26 @@ purge_process (struct GNUNET_OS_Process *process)
}
+/**
+ * Runs #TALER_TESTING_setup() using the configuration.
+ *
+ * @param cls unused
+ * @param cfg configuration to use
+ * @return status code
+ */
+static int
+setup_with_cfg (void *cls,
+ const struct GNUNET_CONFIGURATION_Handle *cfg)
+{
+ (void) cls;
+ return TALER_TESTING_setup (&run,
+ NULL,
+ cfg,
+ NULL,
+ GNUNET_NO);
+}
+
+
int
main (int argc,
char *const *argv)
@@ -196,11 +216,9 @@ main (int argc,
}
}
- ret = TALER_TESTING_setup (&run,
- NULL,
- cfgfilename,
- NULL,
- GNUNET_NO);
+ ret = GNUNET_CONFIGURATION_parse_and_run (cfgfilename,
+ &setup_with_cfg,
+ NULL);
purge_process (twisterd);
if (GNUNET_NO == with_fakebank)
diff --git a/src/testing/test_exchange_api_twisted.c b/src/testing/test_exchange_api_twisted.c
index 146e28de6..31b8ada70 100644
--- a/src/testing/test_exchange_api_twisted.c
+++ b/src/testing/test_exchange_api_twisted.c
@@ -299,6 +299,7 @@ main (int argc,
TALER_TESTING_cleanup_files (CONFIG_FILE);
switch (TALER_TESTING_prepare_exchange (CONFIG_FILE,
+ GNUNET_YES,
&ec))
{
case GNUNET_SYSERR: