Merge pull request #4165
68b1197
tests: ringdb: use system's temporary dir path (radfish)
This commit is contained in:
commit
01475c36c0
|
@ -76,13 +76,13 @@ public:
|
||||||
private:
|
private:
|
||||||
std::string make_filename()
|
std::string make_filename()
|
||||||
{
|
{
|
||||||
boost::filesystem::path path = tools::get_default_data_dir();
|
boost::filesystem::path path =
|
||||||
path /= "fake";
|
boost::filesystem::temp_directory_path();
|
||||||
#if defined(__MINGW32__) || defined(__MINGW__)
|
#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);
|
EXPECT_TRUE(filename != NULL);
|
||||||
#else
|
#else
|
||||||
path /= "ringdb-test-XXXXXX";
|
path /= "monero-ringdb-test-XXXXXX";
|
||||||
filename = strdup(path.string().c_str());
|
filename = strdup(path.string().c_str());
|
||||||
EXPECT_TRUE(mkdtemp(filename) != NULL);
|
EXPECT_TRUE(mkdtemp(filename) != NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue