Changeset View
Changeset View
Standalone View
Standalone View
src/test/testutil.cpp
Show All 19 Lines | #ifdef WIN32 | ||||
if (GetTempPathA(MAX_PATH, pszPath)) { | if (GetTempPathA(MAX_PATH, pszPath)) { | ||||
path = fs::path(pszPath); | path = fs::path(pszPath); | ||||
} | } | ||||
#else | #else | ||||
path = fs::path("/tmp"); | path = fs::path("/tmp"); | ||||
#endif | #endif | ||||
if (path.empty() || !fs::is_directory(path)) { | if (path.empty() || !fs::is_directory(path)) { | ||||
LogPrintf("GetTempPath(): failed to find temp path\n"); | LogPrint(BCLog::TEST, "GetTempPath(): failed to find temp path\n"); | ||||
return fs::path(""); | return fs::path(""); | ||||
} | } | ||||
return path; | return path; | ||||
#endif | #endif | ||||
} | } |