diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-24 10:31:09 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-24 10:31:09 +0100 |
commit | 0e5149d7e776cd2d95af81abbf3a52d3c79659b6 (patch) | |
tree | 3020e7e2b70d71d0e8549f017c4c030b72e9df40 /src/namestore/test_namestore_api_remove_not_existing_record.c | |
parent | da24a3606f55c66d8e1ce283661640e491489870 (diff) | |
download | gnunet-0e5149d7e776cd2d95af81abbf3a52d3c79659b6.tar.gz gnunet-0e5149d7e776cd2d95af81abbf3a52d3c79659b6.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_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 10 |
1 files changed, 4 insertions, 6 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 fdbe9390f..c8110fe6b 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -152,18 +152,16 @@ run (void *cls, | |||
152 | } | 152 | } |
153 | 153 | ||
154 | 154 | ||
155 | #include "test_common.c" | ||
156 | |||
157 | |||
155 | int | 158 | int |
156 | main (int argc, char *argv[]) | 159 | main (int argc, char *argv[]) |
157 | { | 160 | { |
158 | const char *plugin_name; | 161 | const char *plugin_name; |
159 | char *cfg_name; | 162 | char *cfg_name; |
160 | 163 | ||
161 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); | 164 | SETUP_CFG (plugin_name, cfg_name); |
162 | GNUNET_asprintf (&cfg_name, | ||
163 | "test_namestore_api_%s.conf", | ||
164 | plugin_name); | ||
165 | GNUNET_DISK_purge_cfg_dir (cfg_name, | ||
166 | "GNUNET_TEST_HOME"); | ||
167 | res = 1; | 165 | res = 1; |
168 | if (0 != | 166 | if (0 != |
169 | GNUNET_TESTING_peer_run ("test-namestore-api-remove-non-existing-record", | 167 | GNUNET_TESTING_peer_run ("test-namestore-api-remove-non-existing-record", |