diff options
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 12 |
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) | |||
437 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 437 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
438 | "Test triest to send from %u (%s) -> peer %u (%s)\n", sender->no, | 438 | "Test triest to send from %u (%s) -> peer %u (%s)\n", sender->no, |
439 | sender_c, receiver->no, GNUNET_i2s (&receiver->id)); | 439 | sender_c, receiver->no, GNUNET_i2s (&receiver->id)); |
440 | GNUNET_free (sender_c); | ||
440 | 441 | ||
441 | cc = GNUNET_TRANSPORT_TESTING_connect_peers (tth, p1, p2, &testing_connect_cb, | 442 | cc = GNUNET_TRANSPORT_TESTING_connect_peers (tth, p1, p2, &testing_connect_cb, |
442 | NULL); | 443 | NULL); |
@@ -500,11 +501,6 @@ main (int argc, char *argv[]) | |||
500 | int ret; | 501 | int ret; |
501 | int nat_res; | 502 | int nat_res; |
502 | 503 | ||
503 | tth = GNUNET_TRANSPORT_TESTING_init (); | ||
504 | |||
505 | GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source); | ||
506 | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source, | ||
507 | &test_plugin); | ||
508 | GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); | 504 | GNUNET_TRANSPORT_TESTING_get_test_name (argv[0], &test_name); |
509 | 505 | ||
510 | GNUNET_log_setup (test_name, | 506 | GNUNET_log_setup (test_name, |
@@ -515,6 +511,12 @@ main (int argc, char *argv[]) | |||
515 | #endif | 511 | #endif |
516 | NULL); | 512 | NULL); |
517 | 513 | ||
514 | GNUNET_TRANSPORT_TESTING_get_test_source_name (__FILE__, &test_source); | ||
515 | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (argv[0], test_source, | ||
516 | &test_plugin); | ||
517 | |||
518 | tth = GNUNET_TRANSPORT_TESTING_init (); | ||
519 | |||
518 | if ((strcmp (test_plugin, "tcp_nat") == 0) || | 520 | if ((strcmp (test_plugin, "tcp_nat") == 0) || |
519 | (strcmp (test_plugin, "udp_nat") == 0)) | 521 | (strcmp (test_plugin, "udp_nat") == 0)) |
520 | { | 522 | { |