From 7ebacc6fbdbcec3123016303cf998c44d485bca7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 24 Mar 2017 13:41:21 +0100 Subject: merge aggregator --- src/exchange-lib/test_exchange_api.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/exchange-lib/test_exchange_api.c') diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c index 9a57e46f..ce8c517a 100644 --- a/src/exchange-lib/test_exchange_api.c +++ b/src/exchange-lib/test_exchange_api.c @@ -3187,6 +3187,24 @@ main (int argc, GNUNET_log_setup ("test-exchange-api", "INFO", NULL); + if (GNUNET_OK != + GNUNET_NETWORK_test_port_free (IPPROTO_TCP, + 8081)) + { + fprintf (stderr, + "Required port %u not available, skipping.\n", + 8081); + return 77; + } + if (GNUNET_OK != + GNUNET_NETWORK_test_port_free (IPPROTO_TCP, + 8082)) + { + fprintf (stderr, + "Required port %u not available, skipping.\n", + 8082); + return 77; + } proc = GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_ALL, NULL, NULL, NULL, -- cgit v1.2.3