diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-10 13:47:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-10 13:47:27 +0200 |
commit | bb230d4d990db60513c1e8083b46c7b8e91489f5 (patch) | |
tree | 41f70356aee58858324e92f6a145c1915b14ca3f /src/hostlist/test_gnunet_daemon_hostlist.c | |
parent | 4cb69d0abd7b44e57f3d0718ece5df05c33d4078 (diff) | |
download | gnunet-bb230d4d990db60513c1e8083b46c7b8e91489f5.tar.gz gnunet-bb230d4d990db60513c1e8083b46c7b8e91489f5.zip |
fix testcase cleanup in hostlist tests
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist.c b/src/hostlist/test_gnunet_daemon_hostlist.c index eb4a85115..dcdabaf6b 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist.c +++ b/src/hostlist/test_gnunet_daemon_hostlist.c | |||
@@ -265,16 +265,22 @@ main (int argc, char *argv[]) | |||
265 | { | 265 | { |
266 | int ret; | 266 | int ret; |
267 | 267 | ||
268 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-1"); | 268 | GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_peer1.conf", |
269 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-2"); | 269 | "GNUNET_TEST_HOME"); |
270 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist"); | 270 | GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_peer2.conf", |
271 | "GNUNET_TEST_HOME"); | ||
272 | GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_data.conf", | ||
273 | "GNUNET_TEST_HOME"); | ||
271 | GNUNET_log_setup ("test-gnunet-daemon-hostlist", | 274 | GNUNET_log_setup ("test-gnunet-daemon-hostlist", |
272 | "WARNING", | 275 | "WARNING", |
273 | NULL); | 276 | NULL); |
274 | ret = check (); | 277 | ret = check (); |
275 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-1"); | 278 | GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_peer1.conf", |
276 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-2"); | 279 | "GNUNET_TEST_HOME"); |
277 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist"); | 280 | GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_peer2.conf", |
281 | "GNUNET_TEST_HOME"); | ||
282 | GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_data.conf", | ||
283 | "GNUNET_TEST_HOME"); | ||
278 | return ret; | 284 | return ret; |
279 | } | 285 | } |
280 | 286 | ||