new_port1 = GNUNET_TESTING_reserve_port (system, GNUNET_YES);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Reserved TCP port %u\n", new_port1);
new_port1 = GNUNET_TESTING_reserve_port (system, GNUNET_YES);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Reserved TCP port %u\n", new_port1);
new_port2 = GNUNET_TESTING_reserve_port (system, GNUNET_YES);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Reserved TCP port %u\n", new_port2);
new_port2 = GNUNET_TESTING_reserve_port (system, GNUNET_YES);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Reserved TCP port %u\n", new_port2);
GNUNET_assert (new_port1 != new_port2);
GNUNET_TESTING_release_port (system, GNUNET_YES, new_port1);
old_port1 = new_port1;
GNUNET_assert (new_port1 != new_port2);
GNUNET_TESTING_release_port (system, GNUNET_YES, new_port1);
old_port1 = new_port1;
GNUNET_assert (old_port1 == new_port1);
GNUNET_TESTING_release_port (system, GNUNET_YES, new_port1);
GNUNET_TESTING_release_port (system, GNUNET_YES, new_port2);
GNUNET_assert (old_port1 == new_port1);
GNUNET_TESTING_release_port (system, GNUNET_YES, new_port1);
GNUNET_TESTING_release_port (system, GNUNET_YES, new_port2);