diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-24 10:28:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-24 10:28:16 +0100 |
commit | 0b5dc8a620fca8dbca9c122594b70267e404859f (patch) | |
tree | 71166165545fcd77ee36bba8eaec45f7bac62da9 /src/namestore/test_namestore_api_store_update.c | |
parent | 4577873dccd43d132062ae3c07e316c86be6af2f (diff) | |
download | gnunet-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_store_update.c')
-rw-r--r-- | src/namestore/test_namestore_api_store_update.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_store_update.c b/src/namestore/test_namestore_api_store_update.c index aad5852e9..b1c0770ae 100644 --- a/src/namestore/test_namestore_api_store_update.c +++ b/src/namestore/test_namestore_api_store_update.c | |||
@@ -283,6 +283,9 @@ run (void *cls, | |||
283 | } | 283 | } |
284 | 284 | ||
285 | 285 | ||
286 | #include "test_common.c" | ||
287 | |||
288 | |||
286 | int | 289 | int |
287 | main (int argc, | 290 | main (int argc, |
288 | char *argv[]) | 291 | char *argv[]) |
@@ -290,13 +293,8 @@ main (int argc, | |||
290 | const char *plugin_name; | 293 | const char *plugin_name; |
291 | char *cfg_name; | 294 | char *cfg_name; |
292 | 295 | ||
293 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | 296 | SETUP_CFG (plugin_name, cfg_name); |
294 | GNUNET_asprintf (&cfg_name, | ||
295 | "test_namestore_api_%s.conf", | ||
296 | plugin_name); | ||
297 | res = 1; | 297 | res = 1; |
298 | GNUNET_DISK_purge_cfg_dir (cfg_name, | ||
299 | "GNUNET_TEST_HOME"); | ||
300 | if (0 != | 298 | if (0 != |
301 | GNUNET_TESTING_peer_run ("test-namestore-api-store-update", | 299 | GNUNET_TESTING_peer_run ("test-namestore-api-store-update", |
302 | cfg_name, | 300 | cfg_name, |