diff options
Diffstat (limited to 'src/transport/test_communicator_basic.c')
-rw-r--r-- | src/transport/test_communicator_basic.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c index 0d6df751a..4699b8dd1 100644 --- a/src/transport/test_communicator_basic.c +++ b/src/transport/test_communicator_basic.c | |||
@@ -509,10 +509,17 @@ main (int argc, | |||
509 | { | 509 | { |
510 | struct GNUNET_CRYPTO_EddsaPrivateKey *private_key; | 510 | struct GNUNET_CRYPTO_EddsaPrivateKey *private_key; |
511 | char *communicator_name; | 511 | char *communicator_name; |
512 | char *test_mode; | ||
513 | char *test_name; | ||
512 | char *cfg_peer; | 514 | char *cfg_peer; |
513 | 515 | ||
514 | ret = 1; | 516 | ret = 1; |
515 | communicator_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | 517 | test_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); |
518 | communicator_name = strchr (test_name, '-'); | ||
519 | communicator_name[0] = '\0'; | ||
520 | communicator_name++; | ||
521 | test_mode = test_name; | ||
522 | |||
516 | GNUNET_asprintf (&communicator_binary, | 523 | GNUNET_asprintf (&communicator_binary, |
517 | "gnunet-communicator-%s", | 524 | "gnunet-communicator-%s", |
518 | communicator_name); | 525 | communicator_name); |
@@ -528,8 +535,8 @@ main (int argc, | |||
528 | for (unsigned int i = 0; i < NUM_PEERS; i++) | 535 | for (unsigned int i = 0; i < NUM_PEERS; i++) |
529 | { | 536 | { |
530 | GNUNET_asprintf ((&cfg_peer), | 537 | GNUNET_asprintf ((&cfg_peer), |
531 | "test_communicator_%s_peer%u.conf", | 538 | "test_communicator_%s_%s_peer%u.conf", |
532 | communicator_name, i + 1); | 539 | communicator_name, test_mode, i + 1); |
533 | cfg_peers_name[i] = cfg_peer; | 540 | cfg_peers_name[i] = cfg_peer; |
534 | cfg_peers[i] = GNUNET_CONFIGURATION_create (); | 541 | cfg_peers[i] = GNUNET_CONFIGURATION_create (); |
535 | if (GNUNET_YES == | 542 | if (GNUNET_YES == |