aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_remove.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-24 10:30:30 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-24 10:30:30 +0100
commitda24a3606f55c66d8e1ce283661640e491489870 (patch)
tree4c4ba67e2e068b22bc3fd730a484587b532bf5e7 /src/namestore/test_namestore_api_remove.c
parent0b5dc8a620fca8dbca9c122594b70267e404859f (diff)
downloadgnunet-da24a3606f55c66d8e1ce283661640e491489870.tar.gz
gnunet-da24a3606f55c66d8e1ce283661640e491489870.zip
avoid failing hard if 'gnunetcheck' db does not exist
(or plugins cannot be loaded for other reasons)
Diffstat (limited to 'src/namestore/test_namestore_api_remove.c')
-rw-r--r--src/namestore/test_namestore_api_remove.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c
index 02c2672aa..4c3d55efc 100644
--- a/src/namestore/test_namestore_api_remove.c
+++ b/src/namestore/test_namestore_api_remove.c
@@ -197,18 +197,16 @@ run (void *cls,
197} 197}
198 198
199 199
200#include "test_common.c"
201
202
200int 203int
201main (int argc, char *argv[]) 204main (int argc, char *argv[])
202{ 205{
203 const char *plugin_name; 206 const char *plugin_name;
204 char *cfg_name; 207 char *cfg_name;
205 208
206 plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); 209 SETUP_CFG (plugin_name, cfg_name);
207 GNUNET_asprintf (&cfg_name,
208 "test_namestore_api_%s.conf",
209 plugin_name);
210 GNUNET_DISK_purge_cfg_dir (cfg_name,
211 "GNUNET_TEST_HOME");
212 res = 1; 210 res = 1;
213 if (0 != 211 if (0 !=
214 GNUNET_TESTING_peer_run ("test-namestore-api-remove", 212 GNUNET_TESTING_peer_run ("test-namestore-api-remove",