aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_monitoring.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-24 10:28:16 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-24 10:28:16 +0100
commit0b5dc8a620fca8dbca9c122594b70267e404859f (patch)
tree71166165545fcd77ee36bba8eaec45f7bac62da9 /src/namestore/test_namestore_api_monitoring.c
parent4577873dccd43d132062ae3c07e316c86be6af2f (diff)
downloadgnunet-0b5dc8a620fca8dbca9c122594b70267e404859f.tar.gz
gnunet-0b5dc8a620fca8dbca9c122594b70267e404859f.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_monitoring.c')
-rw-r--r--src/namestore/test_namestore_api_monitoring.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c
index 4aed21d86..c85ec8457 100644
--- a/src/namestore/test_namestore_api_monitoring.c
+++ b/src/namestore/test_namestore_api_monitoring.c
@@ -363,6 +363,9 @@ run (void *cls,
363} 363}
364 364
365 365
366#include "test_common.c"
367
368
366int 369int
367main (int argc, 370main (int argc,
368 char *argv[]) 371 char *argv[])
@@ -370,12 +373,7 @@ main (int argc,
370 const char *plugin_name; 373 const char *plugin_name;
371 char *cfg_name; 374 char *cfg_name;
372 375
373 plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); 376 SETUP_CFG (plugin_name, cfg_name);
374 GNUNET_asprintf (&cfg_name,
375 "test_namestore_api_%s.conf",
376 plugin_name);
377 GNUNET_DISK_purge_cfg_dir (cfg_name,
378 "GNUNET_TEST_HOME");
379 res = 1; 377 res = 1;
380 if (0 != 378 if (0 !=
381 GNUNET_TESTING_peer_run ("test-namestore-api-monitoring", 379 GNUNET_TESTING_peer_run ("test-namestore-api-monitoring",