diff options
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_public.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_public.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_lookup_public.c b/src/namestore/test_namestore_api_lookup_public.c index 09d6b302d..02ca16042 100644 --- a/src/namestore/test_namestore_api_lookup_public.c +++ b/src/namestore/test_namestore_api_lookup_public.c | |||
@@ -237,15 +237,23 @@ run (void *cls, | |||
237 | int | 237 | int |
238 | main (int argc, char *argv[]) | 238 | main (int argc, char *argv[]) |
239 | { | 239 | { |
240 | const char *plugin_name; | ||
241 | char *cfg_name; | ||
242 | |||
243 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
244 | GNUNET_asprintf (&cfg_name, | ||
245 | "test_namestore_api_%s.conf", | ||
246 | plugin_name); | ||
240 | res = 1; | 247 | res = 1; |
241 | if (0 != | 248 | if (0 != |
242 | GNUNET_TESTING_peer_run ("test-namestore-api", | 249 | GNUNET_TESTING_peer_run ("test-namestore-api", |
243 | "test_namestore_api.conf", | 250 | cfg_name, |
244 | &run, | 251 | &run, |
245 | NULL)) | 252 | NULL)) |
246 | { | 253 | { |
247 | res = 1; | 254 | res = 1; |
248 | } | 255 | } |
256 | GNUNET_free (cfg_name); | ||
249 | if (NULL != directory) | 257 | if (NULL != directory) |
250 | { | 258 | { |
251 | GNUNET_DISK_directory_remove (directory); | 259 | GNUNET_DISK_directory_remove (directory); |