summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-07-17 16:47:50 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-07-17 16:47:50 -0400
commit4b158580e5654615d2a5510267bf76392c9666fa (patch)
treec05b65ad5df1b962bbbcaf7795f5490ccc72b71d
parent167ac704c8387c531630949860e33fb5a59789a8 (diff)
SL-18837: Lowercasing pathname for string compare is Windows-only.
-rw-r--r--indra/llcommon/tests/llprocess_test.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llcommon/tests/llprocess_test.cpp b/indra/llcommon/tests/llprocess_test.cpp
index c1cb2af7fe..b6b297b8d7 100644
--- a/indra/llcommon/tests/llprocess_test.cpp
+++ b/indra/llcommon/tests/llprocess_test.cpp
@@ -591,7 +591,13 @@ namespace tut
" 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(), utf8str_tolower(tempdir.getName()));
+ std::string expected{ tempdir.getName() };
+#if LL_WINDOWS
+ // SIGH, don't get tripped up by "C:" != "c:" --
+ // but on the Mac, using tolower() fails because "/users" != "/Users"!
+ expected = utf8str_tolower(expected);
+#endif
+ ensure_equals("os.getcwd()", py.run_read(), expected);
}
template<> template<>