From 52fe9d657bd54e622e8b87070c29ac0ffc27c575 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 19 Nov 2021 20:56:53 +0100 Subject: -fix leaks and compiler warnings --- src/testing/test_exchange_api_twisted.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/testing/test_exchange_api_twisted.c') diff --git a/src/testing/test_exchange_api_twisted.c b/src/testing/test_exchange_api_twisted.c index 818b54deb..02471eb91 100644 --- a/src/testing/test_exchange_api_twisted.c +++ b/src/testing/test_exchange_api_twisted.c @@ -155,7 +155,8 @@ run (void *cls, * NOTE: not all CMDs actually need the twister, * so it may be better to move those into the "main" * lib test suite. - */struct TALER_TESTING_Command refund[] = { + */ + struct TALER_TESTING_Command refund[] = { CMD_TRANSFER_TO_EXCHANGE ("create-reserve-r1", "EUR:5.01"), CMD_EXEC_WIREWATCH ("wirewatch-r1"), @@ -183,7 +184,6 @@ run (void *cls, MHD_HTTP_FORBIDDEN, "EUR:5", "deposit-refund-1"), - /* This next deposit CMD is only used to provide a * good merchant signature to the next (failing) refund * operations. */ @@ -210,6 +210,7 @@ run (void *cls, TALER_TESTING_cmd_end () }; +#if 0 /** * Test that we don't get errors when the keys from the exchange * are out of date. @@ -234,6 +235,7 @@ run (void *cls, MHD_HTTP_OK), TALER_TESTING_cmd_end () }; +#endif struct TALER_TESTING_Command commands[] = { TALER_TESTING_cmd_wire_add ("add-wire-account", @@ -248,11 +250,14 @@ run (void *cls, refresh_409_conflict), TALER_TESTING_cmd_batch ("refund", refund), +#if 0 TALER_TESTING_cmd_batch ("expired-keys", expired_keys), +#endif TALER_TESTING_cmd_end () }; + (void) cls; TALER_TESTING_run_with_fakebank (is, commands, bc.exchange_auth.wire_gateway_url); @@ -280,6 +285,8 @@ main (int argc, { int ret; + (void) argc; + (void) argv; /* These environment variables get in the way... */ unsetenv ("XDG_DATA_HOME"); unsetenv ("XDG_CONFIG_HOME"); -- cgit v1.2.3