diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-06-19 17:52:35 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-06-20 09:31:02 -0400 |
commit | fad3d2a624377de4b0311e6ddd446c36dafd1ddc (patch) | |
tree | 6663ba6afdd3b667880fdc5aee0b410c20f85d89 /src/test/util_tests.cpp | |
parent | b1344eac5fcccd1847438ca203ce625f30d1151d (diff) |
test: Create data dir in BasicTestingSetup
Diffstat (limited to 'src/test/util_tests.cpp')
-rw-r--r-- | src/test/util_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index 8fee66d6c3..d1fcb345b4 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -1398,7 +1398,7 @@ static void TestOtherProcess(fs::path dirname, std::string lockname, int fd) BOOST_AUTO_TEST_CASE(test_LockDirectory) { - fs::path dirname = SetDataDir("test_LockDirectory") / fs::unique_path(); + fs::path dirname = GetDataDir() / "lock_dir"; const std::string lockname = ".lock"; #ifndef WIN32 // Revert SIGCHLD to default, otherwise boost.test will catch and fail on @@ -1487,7 +1487,7 @@ BOOST_AUTO_TEST_CASE(test_LockDirectory) BOOST_AUTO_TEST_CASE(test_DirIsWritable) { // Should be able to write to the data dir. - fs::path tmpdirname = SetDataDir("test_DirIsWritable"); + fs::path tmpdirname = GetDataDir(); BOOST_CHECK_EQUAL(DirIsWritable(tmpdirname), true); // Should not be able to write to a non-existent dir. |