From 23639bca3a7b73d81bd706fd1dee65163433eb70 Mon Sep 17 00:00:00 2001 From: James Cook Date: Wed, 19 Mar 2008 22:35:07 +0000 Subject: Fixed unit test failure on Windows, "/tmp" doesn't exist on Win32. Ported from Havok4 branch, reviewed with Kelly, OK with Josh. --- indra/test/llmessageconfig_tut.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra') 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()); -- cgit v1.2.3