summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-06-28 08:30:41 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-06-28 08:30:41 -0400
commitcfd7d8905d686411a774c47bbfc13f49882b65e6 (patch)
tree580c3c2cbc195d888911e5ce1c5822e589de2db3
parentfbeff6d8052d4b614a0a2c8ebaf35b45379ab578 (diff)
Work around MSVC limitation: explicitly call fsyspath::string().
-rw-r--r--indra/test/test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/test/test.cpp b/indra/test/test.cpp
index 22f9ccf334..0e863d8084 100644
--- a/indra/test/test.cpp
+++ b/indra/test/test.cpp
@@ -550,7 +550,9 @@ int main(int argc, char **argv)
// specific test we want to monitor, and some viewer integration tests are
// quite verbose. In addition to noticing plain LOGTEST= (for all tests),
// also notice LOGTEST_progname= (for a specific test).
- std::string basename(fsyspath(argv[0]).stem());
+ // (Why doesn't MSVC notice fsyspath::operator std::string()?
+ // Why must we explicitly call fsyspath::string()?)
+ std::string basename(fsyspath(argv[0]).stem().string());
// don't make user set LOGTEST_INTEGRATION_TEST_progname or (worse)
// LOGTEST_PROJECT_foo_TEST_bar -- only LOGTEST_progname or LOGTEST_bar
auto _TEST_ = basename.find("_TEST_");