diff options
| author | MarcoFalke <[email protected]> | 2019-06-19 17:52:35 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-06-20 09:31:02 -0400 |
| commit | fad3d2a624377de4b0311e6ddd446c36dafd1ddc (patch) | |
| tree | 6663ba6afdd3b667880fdc5aee0b410c20f85d89 /src/test/util_tests.cpp | |
| parent | Merge #16241: docs: add rapidcheck to vcpkg install list (diff) | |
| download | discoin-fad3d2a624377de4b0311e6ddd446c36dafd1ddc.tar.xz discoin-fad3d2a624377de4b0311e6ddd446c36dafd1ddc.zip | |
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 8fee66d6c..d1fcb345b 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. |