diff options
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_private.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_private.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_lookup_private.c b/src/namestore/test_namestore_api_lookup_private.c index 57505c48b..7866749f1 100644 --- a/src/namestore/test_namestore_api_lookup_private.c +++ b/src/namestore/test_namestore_api_lookup_private.c | |||
@@ -230,15 +230,23 @@ run (void *cls, | |||
230 | int | 230 | int |
231 | main (int argc, char *argv[]) | 231 | main (int argc, char *argv[]) |
232 | { | 232 | { |
233 | const char *plugin_name; | ||
234 | char *cfg_name; | ||
235 | |||
236 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
237 | GNUNET_asprintf (&cfg_name, | ||
238 | "test_namestore_api_%s.conf", | ||
239 | plugin_name); | ||
233 | res = 1; | 240 | res = 1; |
234 | if (0 != | 241 | if (0 != |
235 | GNUNET_TESTING_peer_run ("test-namestore-api", | 242 | GNUNET_TESTING_peer_run ("test-namestore-api-lookup-private", |
236 | "test_namestore_api.conf", | 243 | cfg_name, |
237 | &run, | 244 | &run, |
238 | NULL)) | 245 | NULL)) |
239 | { | 246 | { |
240 | res = 1; | 247 | res = 1; |
241 | } | 248 | } |
249 | GNUNET_free (cfg_name); | ||
242 | if (NULL != directory) | 250 | if (NULL != directory) |
243 | { | 251 | { |
244 | GNUNET_DISK_directory_remove (directory); | 252 | GNUNET_DISK_directory_remove (directory); |
@@ -248,4 +256,4 @@ main (int argc, char *argv[]) | |||
248 | } | 256 | } |
249 | 257 | ||
250 | 258 | ||
251 | /* end of test_namestore_api_store.c */ | 259 | /* end of test_namestore_api_lookup_private.c */ |