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_learning.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_learning.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist_learning.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index 88ad22a1a..799ffc3ff 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c | |||
@@ -562,14 +562,18 @@ main (int argc, char *argv[]) | |||
562 | { | 562 | { |
563 | int ret; | 563 | int ret; |
564 | 564 | ||
565 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-1"); | 565 | GNUNET_DISK_purge_cfg_dir ("test_learning_learn_peer.conf", |
566 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-2"); | 566 | "GNUNET_TEST_HOME"); |
567 | GNUNET_DISK_purge_cfg_dir ("test_learning_adv_peer.conf", | ||
568 | "GNUNET_TEST_HOME"); | ||
567 | GNUNET_log_setup ("test-gnunet-daemon-hostlist", | 569 | GNUNET_log_setup ("test-gnunet-daemon-hostlist", |
568 | "WARNING", | 570 | "WARNING", |
569 | NULL); | 571 | NULL); |
570 | ret = check (); | 572 | ret = check (); |
571 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-1"); | 573 | GNUNET_DISK_purge_cfg_dir ("test_learning_learn_peer.conf", |
572 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-2"); | 574 | "GNUNET_TEST_HOME"); |
575 | GNUNET_DISK_purge_cfg_dir ("test_learning_adv_peer.conf", | ||
576 | "GNUNET_TEST_HOME"); | ||
573 | if (GNUNET_YES == | 577 | if (GNUNET_YES == |
574 | GNUNET_DISK_file_test ("hostlists_learn_peer.file")) | 578 | GNUNET_DISK_file_test ("hostlists_learn_peer.file")) |
575 | { | 579 | { |