aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/ringdb.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-08-15 17:33:06 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-08-15 17:33:06 -0500
commit01475c36c0fd0984949c7c3a1ceb2e9f2ca2cea4 (patch)
treef02de9e6368f6db6f0bd31edb200e636411e6b8c /tests/unit_tests/ringdb.cpp
parentMerge pull request #4164 (diff)
parenttests: ringdb: use system's temporary dir path (diff)
downloadmonero-01475c36c0fd0984949c7c3a1ceb2e9f2ca2cea4.tar.xz
Merge pull request #4165
68b1197 tests: ringdb: use system's temporary dir path (radfish)
Diffstat (limited to 'tests/unit_tests/ringdb.cpp')
-rw-r--r--tests/unit_tests/ringdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit_tests/ringdb.cpp b/tests/unit_tests/ringdb.cpp
index d50d61b0f..ef954fda2 100644
--- a/tests/unit_tests/ringdb.cpp
+++ b/tests/unit_tests/ringdb.cpp
@@ -76,13 +76,13 @@ public:
private:
std::string make_filename()
{
- boost::filesystem::path path = tools::get_default_data_dir();
- path /= "fake";
+ boost::filesystem::path path =
+ boost::filesystem::temp_directory_path();
#if defined(__MINGW32__) || defined(__MINGW__)
- filename = tempnam(path.string().c_str(), "ringdb-test-");
+ filename = tempnam(path.string().c_str(), "monero-ringdb-test-");
EXPECT_TRUE(filename != NULL);
#else
- path /= "ringdb-test-XXXXXX";
+ path /= "monero-ringdb-test-XXXXXX";
filename = strdup(path.string().c_str());
EXPECT_TRUE(mkdtemp(filename) != NULL);
#endif