diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-11-16 14:06:33 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-11-16 14:06:33 +0000 |
commit | ceb61a7028230e7d1faba3f01f1d9b0e1f9ab8e4 (patch) | |
tree | 09f5c7a16a59c1ffad083c6600d19f7ec1c86161 /src/transport/test_transport_api_unreliability.c | |
parent | 961745754238752335b14293ef819d0b45ae8867 (diff) | |
download | gnunet-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.c')
-rw-r--r-- | src/transport/test_transport_api_unreliability.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index 2336b2bf9..1e93615e7 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c | |||
@@ -549,11 +549,6 @@ main (int argc, char *argv[]) | |||
549 | int ret; | 549 | int ret; |
550 | int nat_res; | 550 | int nat_res; |
551 | 551 | ||
552 | tth = GNUNET_TRANSPORT_TESTING_init (); | ||
553 | |||
554 | GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source); | ||
555 | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source, | ||
556 | &test_plugin); | ||
557 | GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); | 552 | GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); |
558 | 553 | ||
559 | GNUNET_log_setup (test_name, | 554 | GNUNET_log_setup (test_name, |
@@ -564,6 +559,12 @@ main (int argc, char *argv[]) | |||
564 | #endif | 559 | #endif |
565 | NULL); | 560 | NULL); |
566 | 561 | ||
562 | GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source); | ||
563 | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source, | ||
564 | &test_plugin); | ||
565 | |||
566 | tth = GNUNET_TRANSPORT_TESTING_init (); | ||
567 | |||
567 | if ((strcmp (test_plugin, "tcp_nat") == 0) || | 568 | if ((strcmp (test_plugin, "tcp_nat") == 0) || |
568 | (strcmp (test_plugin, "udp_nat") == 0)) | 569 | (strcmp (test_plugin, "udp_nat") == 0)) |
569 | { | 570 | { |