summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-test/options.cpp9
-rw-r--r--tools/slang-test/options.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/tools/slang-test/options.cpp b/tools/slang-test/options.cpp
index 895b7e2bb..0f3abfdf2 100644
--- a/tools/slang-test/options.cpp
+++ b/tools/slang-test/options.cpp
@@ -330,7 +330,14 @@ static bool _isSubCommand(const char* arg)
// first positional argument is source shader path
- optionsOut->testPrefixes = std::move(positionalArgs);
+ optionsOut->testPrefixes.clear();
+ optionsOut->testPrefixes.reserve(positionalArgs.getCount());
+ for (auto testPrefix : positionalArgs)
+ {
+ Slang::StringBuilder sb;
+ Slang::Path::simplify(testPrefix, Slang::Path::SimplifyStyle::NoRoot, sb);
+ optionsOut->testPrefixes.add(sb);
+ }
if (optionsOut->binDir.getLength() == 0)
{
diff --git a/tools/slang-test/options.h b/tools/slang-test/options.h
index ae4d02234..2b9ed946b 100644
--- a/tools/slang-test/options.h
+++ b/tools/slang-test/options.h
@@ -53,7 +53,7 @@ struct Options
Slang::String binDir;
// only run test cases with names have one of these prefixes.
- Slang::List<const char *> testPrefixes;
+ Slang::List<Slang::String> testPrefixes;
// generate extra output (notably: command lines we run)
bool shouldBeVerbose = false;