summaryrefslogtreecommitdiff
path: root/indra/test
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-06-27 23:11:18 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-06-27 23:11:18 -0400
commit982ea7fb796924877e95bee2f9ba6b2296219139 (patch)
treee97b7b68a8aae653a092b6010c737f294f8b5b79 /indra/test
parent0cc7436be1f57299384c5acad5d32e13f2f4d1cf (diff)
Work around VS refusal to initialize a string
Diffstat (limited to 'indra/test')
-rw-r--r--indra/test/test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/test/test.cpp b/indra/test/test.cpp
index 3cbac41f4a..22f9ccf334 100644
--- a/indra/test/test.cpp
+++ b/indra/test/test.cpp
@@ -550,7 +550,7 @@ 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() };
+ std::string basename(fsyspath(argv[0]).stem());
// 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_");
@@ -558,7 +558,7 @@ int main(int argc, char **argv)
{
basename.erase(0, _TEST_+6);
}
- std::string LOGTEST_prog_key{ "LOGTEST_" + basename };
+ std::string LOGTEST_prog_key("LOGTEST_" + basename);
const char* LOGTEST_prog = getenv(LOGTEST_prog_key.c_str());
// std::cout << LOGTEST_prog_key << "='" << (LOGTEST_prog? LOGTEST_prog : "") << "'" << std::endl;
if (LOGTEST_prog && *LOGTEST_prog)