aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/test_exchange_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-24 13:41:21 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-24 13:42:02 +0100
commit7ebacc6fbdbcec3123016303cf998c44d485bca7 (patch)
treeb5b5c59a414243e8bc595c49f91a648d8bf82c59 /src/exchange-lib/test_exchange_api.c
parent6050dad63e269971fac86955393e6b68b8f1908a (diff)
merge aggregator
Diffstat (limited to 'src/exchange-lib/test_exchange_api.c')
-rw-r--r--src/exchange-lib/test_exchange_api.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/exchange-lib/test_exchange_api.c b/src/exchange-lib/test_exchange_api.c
index 9a57e46f9..ce8c517ac 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,