aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_unreliability.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-08-31 13:48:59 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-08-31 13:48:59 +0000
commit721db5457eebf6e0d713cde2585ba298dbcfe1b7 (patch)
tree26c601343f30f3447fcc3a33f5eccec1d3373b64 /src/transport/test_transport_api_unreliability.c
parentc0d23c3d48800d92773a7e65cf1eb19998da98b5 (diff)
downloadgnunet-721db5457eebf6e0d713cde2585ba298dbcfe1b7.tar.gz
gnunet-721db5457eebf6e0d713cde2585ba298dbcfe1b7.zip
moving code to generate cfg name used in every test to testing lib
Diffstat (limited to 'src/transport/test_transport_api_unreliability.c')
-rw-r--r--src/transport/test_transport_api_unreliability.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c
index 020d8614e..6f6f481fc 100644
--- a/src/transport/test_transport_api_unreliability.c
+++ b/src/transport/test_transport_api_unreliability.c
@@ -499,10 +499,6 @@ main (int argc, char *argv[])
499 if (NULL != (dotexe = strstr (filename, ".exe"))) 499 if (NULL != (dotexe = strstr (filename, ".exe")))
500 dotexe[0] = '\0'; 500 dotexe[0] = '\0';
501 501
502 /* create cfg filename */
503 GNUNET_asprintf (&cfg_file_p1, "%s_peer1.conf", filename);
504 GNUNET_asprintf (&cfg_file_p2, "%s_peer2.conf", filename);
505
506 split = strstr (src_name, "."); 502 split = strstr (src_name, ".");
507 if (split != NULL) 503 if (split != NULL)
508 { 504 {
@@ -532,10 +528,15 @@ main (int argc, char *argv[])
532 return 0; 528 return 0;
533 } 529 }
534 } 530 }
531
532 GNUNET_TRANSPORT_TESTING_get_config_name (argv[0], &cfg_file_p1, 1);
533 GNUNET_TRANSPORT_TESTING_get_config_name (argv[0], &cfg_file_p2, 2);
534
535 ret = check (); 535 ret = check ();
536 536
537 GNUNET_free (cfg_file_p1); 537 GNUNET_free (cfg_file_p1);
538 GNUNET_free (cfg_file_p2); 538 GNUNET_free (cfg_file_p2);
539
539 GNUNET_free_non_null (test_name); 540 GNUNET_free_non_null (test_name);
540 541
541 return ret; 542 return ret;