avoid failing hard if 'gnunetcheck' db does not exist
authorChristian Grothoff <christian@grothoff.org>
Sun, 24 Feb 2019 11:43:46 +0000 (12:43 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 24 Feb 2019 11:43:58 +0000 (12:43 +0100)
 (or plugins cannot be loaded for other reasons)

src/namestore/test_namestore_api_zone_iteration_nick.c

index 867f5acaea284257ae9ff1b604cd9fa776dbf06f..088422ca37087d990c07460020d66aef6fc5a389 100644 (file)
@@ -480,19 +480,17 @@ run (void *cls,
 }
 
 
+#include "test_common.c"
+
+
 int
 main (int argc, char *argv[])
 {
   const char *plugin_name;
   char *cfg_name;
 
-  plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]);
-  GNUNET_asprintf (&cfg_name,
-                   "test_namestore_api_%s.conf",
-                   plugin_name);
+  SETUP_CFG (plugin_name, cfg_name);
   res = 1;
-  GNUNET_DISK_purge_cfg_dir (cfg_name,
-                             "GNUNET_TEST_HOME");
   if (0 !=
       GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration-nick",
                                cfg_name,