diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-01 12:44:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-01 12:44:39 +0200 |
commit | a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb (patch) | |
tree | 6eec8a07a9a932d3c7b36f196ad01428e4f0ed63 /src/namestore/test_namestore_api_remove_not_existing_record.c | |
parent | 8f2f5bc2ee8ebf9b059b7b7e3104f25c5c363458 (diff) | |
download | gnunet-a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb.tar.gz gnunet-a5e3e870f27c8ef3a3cd5d59a686a3050f9c64fb.zip |
more extensive namestore tests for the non-sqlite plugins, with bugfixes
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); |