aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_unreliability_constant.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_unreliability_constant.c
parent961745754238752335b14293ef819d0b45ae8867 (diff)
downloadgnunet-ceb61a7028230e7d1faba3f01f1d9b0e1f9ab8e4.tar.gz
gnunet-ceb61a7028230e7d1faba3f01f1d9b0e1f9ab8e4.zip
transport-testing uses precomputed hostkeys to improve speed especially on slow systems
Diffstat (limited to 'src/transport/test_transport_api_unreliability_constant.c')
-rw-r--r--src/transport/test_transport_api_unreliability_constant.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/transport/test_transport_api_unreliability_constant.c b/src/transport/test_transport_api_unreliability_constant.c
index 3ce256017..feca0c8b7 100644
--- a/src/transport/test_transport_api_unreliability_constant.c
+++ b/src/transport/test_transport_api_unreliability_constant.c
@@ -487,11 +487,6 @@ main (int argc, char *argv[])
487 int ret; 487 int ret;
488 int nat_res; 488 int nat_res;
489 489
490 tth = GNUNET_TRANSPORT_TESTING_init ();
491
492 GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source);
493 GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source,
494 &test_plugin);
495 GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); 490 GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name);
496 491
497 GNUNET_log_setup (test_name, 492 GNUNET_log_setup (test_name,
@@ -502,6 +497,12 @@ main (int argc, char *argv[])
502#endif 497#endif
503 NULL); 498 NULL);
504 499
500 GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source);
501 GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source,
502 &test_plugin);
503
504 tth = GNUNET_TRANSPORT_TESTING_init ();
505
505 if ((strcmp (test_plugin, "tcp_nat") == 0) || 506 if ((strcmp (test_plugin, "tcp_nat") == 0) ||
506 (strcmp (test_plugin, "udp_nat") == 0)) 507 (strcmp (test_plugin, "udp_nat") == 0))
507 { 508 {