diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-28 20:41:49 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-28 20:41:49 +0100 |
commit | 2d297a17215ad1354cb5b70f3eeabdee7c93225e (patch) | |
tree | 1b6b6666e206b877c56297ed601ab4a32b7b8513 /src/testing/testing_api_helpers_exchange.c | |
parent | baaa8832b28b53b6d2ce9fd87f13b48f8c3c1b19 (diff) | |
download | exchange-2d297a17215ad1354cb5b70f3eeabdee7c93225e.tar.xz |
skip tests if ports are unavailable
Diffstat (limited to 'src/testing/testing_api_helpers_exchange.c')
-rw-r--r-- | src/testing/testing_api_helpers_exchange.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/testing/testing_api_helpers_exchange.c b/src/testing/testing_api_helpers_exchange.c index 8da7a6181..d7195a9c4 100644 --- a/src/testing/testing_api_helpers_exchange.c +++ b/src/testing/testing_api_helpers_exchange.c @@ -406,6 +406,13 @@ sign_keys_for_exchange (void *cls, si->ec->exchange_url = NULL; return GNUNET_NO; } + if (GNUNET_OK != + TALER_TESTING_url_port_free (si->ec->exchange_url)) + { + GNUNET_free (si->ec->exchange_url); + si->ec->exchange_url = NULL; + return GNUNET_NO; + } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, @@ -421,7 +428,12 @@ sign_keys_for_exchange (void *cls, si->ec->auditor_url = NULL; return GNUNET_SYSERR; } - + if (GNUNET_OK != + TALER_TESTING_url_port_free (si->ec->auditor_url)) + { + ret = GNUNET_NO; + goto fail; + } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "paths", |