summaryrefslogtreecommitdiff
path: root/tools/slang-test/options.h
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-05-28 10:53:41 -0700
committerGitHub <noreply@github.com>2024-05-28 10:53:41 -0700
commitf6b755dc62df5ff796eb076ae1459a69746ee2f7 (patch)
tree6295c6aa2efd38722fa3453c4892b5a9e06d64d1 /tools/slang-test/options.h
parent9323095c1aa35d8a406f3d94d7abf2d5621b01e9 (diff)
Simplify test file names for slang-test (#4227)
When slang-test.exe ran with a file name doesn't exactly match character-by-character, those tests don't run. This commit alters the file name given from the command-line and it will behave in a more expected way. - "./" are removed. - "../" gets removed along with its parent directory name. - Back-slash characters will be converted to slash on Windows.
Diffstat (limited to 'tools/slang-test/options.h')
-rw-r--r--tools/slang-test/options.h2
1 files changed, 1 insertions, 1 deletions
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;