summaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_reliability.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-16 14:06:33 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-16 14:06:33 +0000
commitceb61a7028230e7d1faba3f01f1d9b0e1f9ab8e4 (patch)
tree09f5c7a16a59c1ffad083c6600d19f7ec1c86161 /src/transport/test_transport_api_reliability.c
parent961745754238752335b14293ef819d0b45ae8867 (diff)
transport-testing uses precomputed hostkeys to improve speed especially on slow systems
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r--src/transport/test_transport_api_reliability.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index 655f6f0a3..7b0b92078 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -437,6 +437,7 @@ start_cb (struct PeerContext *p, void *cls)
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Test triest to send from %u (%s) -> peer %u (%s)\n", sender->no,
sender_c, receiver->no, GNUNET_i2s (&receiver->id));
+ GNUNET_free (sender_c);
cc = GNUNET_TRANSPORT_TESTING_connect_peers (tth, p1, p2, &testing_connect_cb,
NULL);
@@ -500,11 +501,6 @@ main (int argc, char *argv[])
int ret;
int nat_res;
- tth = GNUNET_TRANSPORT_TESTING_init ();
-
- GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source);
- GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source,
- &test_plugin);
GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name);
GNUNET_log_setup (test_name,
@@ -515,6 +511,12 @@ main (int argc, char *argv[])
#endif
NULL);
+ GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source);
+ GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source,
+ &test_plugin);
+
+ tth = GNUNET_TRANSPORT_TESTING_init ();
+
if ((strcmp (test_plugin, "tcp_nat") == 0) ||
(strcmp (test_plugin, "udp_nat") == 0))
{