diff options
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_shadow_filter.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_shadow_filter.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_lookup_shadow_filter.c b/src/namestore/test_namestore_api_lookup_shadow_filter.c index a22baa17b..5b8811a23 100644 --- a/src/namestore/test_namestore_api_lookup_shadow_filter.c +++ b/src/namestore/test_namestore_api_lookup_shadow_filter.c | |||
@@ -345,15 +345,23 @@ run (void *cls, | |||
345 | int | 345 | int |
346 | main (int argc, char *argv[]) | 346 | main (int argc, char *argv[]) |
347 | { | 347 | { |
348 | const char *plugin_name; | ||
349 | char *cfg_name; | ||
350 | |||
351 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
352 | GNUNET_asprintf (&cfg_name, | ||
353 | "test_namestore_api_%s.conf", | ||
354 | plugin_name); | ||
348 | res = 1; | 355 | res = 1; |
349 | if (0 != | 356 | if (0 != |
350 | GNUNET_TESTING_peer_run ("test-namestore-api", | 357 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-shadow-filter", |
351 | "test_namestore_api.conf", | 358 | cfg_name, |
352 | &run, | 359 | &run, |
353 | NULL)) | 360 | NULL)) |
354 | { | 361 | { |
355 | res = 1; | 362 | res = 1; |
356 | } | 363 | } |
364 | GNUNET_free (cfg_name); | ||
357 | if (NULL != directory) | 365 | if (NULL != directory) |
358 | { | 366 | { |
359 | GNUNET_DISK_directory_remove (directory); | 367 | GNUNET_DISK_directory_remove (directory); |