diff --git a/indra/llcommon/tests/llprocess_test.cpp b/indra/llcommon/tests/llprocess_test.cpp
index 60ed12ad6a9c77972e3f3393ee0f4280ca49a3d2..6d2292fb88efe35be5828407d7db81d8f2e488bc 100644
--- a/indra/llcommon/tests/llprocess_test.cpp
+++ b/indra/llcommon/tests/llprocess_test.cpp
@@ -186,7 +186,7 @@ class NamedTempDir: public boost::noncopyable
                          "from __future__ import with_statement\n"
                          "import os.path, sys, tempfile\n"
                          "with open(sys.argv[1], 'w') as f:\n"
-                         "    f.write(os.path.realpath(tempfile.mkdtemp()))\n"))
+                         "    f.write(os.path.normcase(os.path.normpath(os.path.realpath(tempfile.mkdtemp()))))\n"))
     {}
 
     ~NamedTempDir()
@@ -513,7 +513,7 @@ namespace tut
                                  "from __future__ import with_statement\n"
                                  "import os, sys\n"
                                  "with open(sys.argv[1], 'w') as f:\n"
-                                 "    f.write(os.getcwd())\n");
+                                 "    f.write(os.path.normcase(os.path.normpath(os.getcwd())))\n");
         // Before running, call setWorkingDirectory()
         py.mParams.cwd = tempdir.getName();
         ensure_equals("os.getcwd()", py.run_read(), tempdir.getName());