diff options
author | James Cook <james@lindenlab.com> | 2008-03-19 22:35:07 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2008-03-19 22:35:07 +0000 |
commit | 23639bca3a7b73d81bd706fd1dee65163433eb70 (patch) | |
tree | 32e8b362d0f9265c520115151a299d7b0ad2822d /indra | |
parent | 25de7377c1f6cc2fa6f217b9e9eaca84ab36748d (diff) |
Fixed unit test failure on Windows, "/tmp" doesn't exist on Win32. Ported from Havok4 branch, reviewed with Kelly, OK with Josh.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/test/llmessageconfig_tut.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/test/llmessageconfig_tut.cpp b/indra/test/llmessageconfig_tut.cpp index 7bda48a0a8..086dbf4ef8 100644 --- a/indra/test/llmessageconfig_tut.cpp +++ b/indra/test/llmessageconfig_tut.cpp @@ -50,7 +50,11 @@ namespace tut random.generate(); // generate temp dir std::ostringstream oStr; +#if LL_WINDOWS + oStr << "llmessage-config-test-" << random; +#else oStr << "/tmp/llmessage-config-test-" << random; +#endif mTestConfigDir = oStr.str(); LLFile::mkdir(mTestConfigDir.c_str()); writeConfigFile(LLSD()); |