aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-10 13:47:27 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-10 13:47:27 +0200
commitbb230d4d990db60513c1e8083b46c7b8e91489f5 (patch)
tree41f70356aee58858324e92f6a145c1915b14ca3f /src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
parent4cb69d0abd7b44e57f3d0718ece5df05c33d4078 (diff)
downloadgnunet-bb230d4d990db60513c1e8083b46c7b8e91489f5.tar.gz
gnunet-bb230d4d990db60513c1e8083b46c7b8e91489f5.zip
fix testcase cleanup in hostlist tests
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist_reconnect.c')
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist_reconnect.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c b/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
index 2ebc780a7..2ab55b668 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist_reconnect.c
@@ -242,9 +242,12 @@ main (int argcx,
242 GNUNET_GETOPT_OPTION_END 242 GNUNET_GETOPT_OPTION_END
243 }; 243 };
244 244
245 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-1"); 245 GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_peer1.conf",
246 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-2"); 246 "GNUNET_TEST_HOME");
247 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-3"); 247 GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_peer2.conf",
248 "GNUNET_TEST_HOME");
249 GNUNET_DISK_purge_cfg_dir ("test_gnunet_daemon_hostlist_data.conf",
250 "GNUNET_TEST_HOME");
248 GNUNET_log_setup ("test-gnunet-daemon-hostlist", 251 GNUNET_log_setup ("test-gnunet-daemon-hostlist",
249 "WARNING", 252 "WARNING",
250 NULL); 253 NULL);
@@ -272,9 +275,12 @@ main (int argcx,
272 "%s", 275 "%s",
273 ".\n"); 276 ".\n");
274 } 277 }
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-peer-3"); 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 ok; 284 return ok;
279} 285}
280 286