Skip to content
Snippets Groups Projects
Commit 23639bca authored by James Cook's avatar James Cook
Browse files

Fixed unit test failure on Windows, "/tmp" doesn't exist on Win32. Ported...

Fixed unit test failure on Windows, "/tmp" doesn't exist on Win32.  Ported from Havok4 branch, reviewed with Kelly, OK with Josh.
parent 25de7377
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,11 @@ namespace tut ...@@ -50,7 +50,11 @@ namespace tut
random.generate(); random.generate();
// generate temp dir // generate temp dir
std::ostringstream oStr; std::ostringstream oStr;
#if LL_WINDOWS
oStr << "llmessage-config-test-" << random;
#else
oStr << "/tmp/llmessage-config-test-" << random; oStr << "/tmp/llmessage-config-test-" << random;
#endif
mTestConfigDir = oStr.str(); mTestConfigDir = oStr.str();
LLFile::mkdir(mTestConfigDir.c_str()); LLFile::mkdir(mTestConfigDir.c_str());
writeConfigFile(LLSD()); writeConfigFile(LLSD());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment