diff options
Diffstat (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index ef199cdf6..2f20c3636 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -167,15 +167,23 @@ run (void *cls, | |||
167 | int | 167 | int |
168 | main (int argc, char *argv[]) | 168 | main (int argc, char *argv[]) |
169 | { | 169 | { |
170 | const char *plugin_name; | ||
171 | char *cfg_name; | ||
172 | |||
173 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | ||
174 | GNUNET_asprintf (&cfg_name, | ||
175 | "test_namestore_api_%s.conf", | ||
176 | plugin_name); | ||
170 | res = 1; | 177 | res = 1; |
171 | if (0 != | 178 | if (0 != |
172 | GNUNET_TESTING_peer_run ("test-namestore-api", | 179 | GNUNET_TESTING_peer_run ("test-namestore-api-remove-non-existing-record", |
173 | "test_namestore_api.conf", | 180 | cfg_name, |
174 | &run, | 181 | &run, |
175 | NULL)) | 182 | NULL)) |
176 | { | 183 | { |
177 | res = 1; | 184 | res = 1; |
178 | } | 185 | } |
186 | GNUNET_free (cfg_name); | ||
179 | if (NULL != directory) | 187 | if (NULL != directory) |
180 | { | 188 | { |
181 | GNUNET_DISK_directory_remove (directory); | 189 | GNUNET_DISK_directory_remove (directory); |