diff options
Diffstat (limited to 'src/namestore/test_namestore_api_monitoring_existing.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring_existing.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_monitoring_existing.c b/src/namestore/test_namestore_api_monitoring_existing.c index 374ad44dd..17f726eb1 100644 --- a/src/namestore/test_namestore_api_monitoring_existing.c +++ b/src/namestore/test_namestore_api_monitoring_existing.c | |||
@@ -368,15 +368,23 @@ run (void *cls, | |||
368 | int | 368 | int |
369 | main (int argc, char *argv[]) | 369 | main (int argc, char *argv[]) |
370 | { | 370 | { |
371 | const char *plugin_name; | ||
372 | char *cfg_name; | ||
373 | |||
374 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
375 | GNUNET_asprintf (&cfg_name, | ||
376 | "test_namestore_api_%s.conf", | ||
377 | plugin_name); | ||
371 | res = 1; | 378 | res = 1; |
372 | if (0 != | 379 | if (0 != |
373 | GNUNET_TESTING_peer_run ("test-namestore-api-monitoring", | 380 | GNUNET_TESTING_peer_run ("test-namestore-api-monitoring-existing", |
374 | "test_namestore_api.conf", | 381 | cfg_name, |
375 | &run, | 382 | &run, |
376 | NULL)) | 383 | NULL)) |
377 | { | 384 | { |
378 | res = 1; | 385 | res = 1; |
379 | } | 386 | } |
387 | GNUNET_free (cfg_name); | ||
380 | if (NULL != directory) | 388 | if (NULL != directory) |
381 | { | 389 | { |
382 | GNUNET_DISK_directory_remove (directory); | 390 | GNUNET_DISK_directory_remove (directory); |
@@ -386,4 +394,4 @@ main (int argc, char *argv[]) | |||
386 | } | 394 | } |
387 | 395 | ||
388 | 396 | ||
389 | /* end of test_namestore_api_monitoring.c */ | 397 | /* end of test_namestore_api_monitoring_existing.c */ |