aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_start_only.c
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-05-29 16:40:28 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-08-21 08:16:29 +0200
commitb26506fd640df98b3bfd70eff230754a1fdee104 (patch)
tree1979e4fb7ac0fed79a444db78d264b77e8a0f4ea /src/core/test_core_api_start_only.c
parent12bd374fa9456bedfedf2a0e3a77d284b7f80cec (diff)
downloadgnunet-b26506fd640df98b3bfd70eff230754a1fdee104.tar.gz
gnunet-b26506fd640df98b3bfd70eff230754a1fdee104.zip
-Replaced several hardcoded /tmp locations in tests of CORE, FS, IDENTITY, NAMECHACHE, PT, TOPOLOGY, and TESTBED subsystems
Diffstat (limited to 'src/core/test_core_api_start_only.c')
-rw-r--r--src/core/test_core_api_start_only.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index 007131134..e50d3b2ec 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -211,9 +211,13 @@ check ()
211 struct GNUNET_GETOPT_CommandLineOption options[] = { 211 struct GNUNET_GETOPT_CommandLineOption options[] = {
212 GNUNET_GETOPT_OPTION_END 212 GNUNET_GETOPT_OPTION_END
213 }; 213 };
214 214
215 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1"); 215 GNUNET_DISK_purge_cfg_dir
216 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2"); 216 ("test_core_api_peer1.conf",
217 "GNUNET_TEST_HOME");
218 GNUNET_DISK_purge_cfg_dir
219 ("test_core_api_peer2.conf",
220 "GNUNET_TEST_HOME");
217 221
218 ok = 1; 222 ok = 1;
219 GNUNET_PROGRAM_run ((sizeof(argv) / sizeof(char *)) - 1, 223 GNUNET_PROGRAM_run ((sizeof(argv) / sizeof(char *)) - 1,
@@ -241,8 +245,12 @@ main (int argc,
241 "WARNING", 245 "WARNING",
242 NULL); 246 NULL);
243 ret = check (); 247 ret = check ();
244 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1"); 248 GNUNET_DISK_purge_cfg_dir
245 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2"); 249 ("test_core_api_peer1.conf",
250 "GNUNET_TEST_HOME");
251 GNUNET_DISK_purge_cfg_dir
252 ("test_core_api_peer2.conf",
253 "GNUNET_TEST_HOME");
246 return ret; 254 return ret;
247} 255}
248 256