diff options
Diffstat (limited to 'tools/slang-test/options.cpp')
| -rw-r--r-- | tools/slang-test/options.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/slang-test/options.cpp b/tools/slang-test/options.cpp index 7a98caec6..1333407d1 100644 --- a/tools/slang-test/options.cpp +++ b/tools/slang-test/options.cpp @@ -90,6 +90,13 @@ static bool _isSubCommand(const char* arg) " -use-test-server Run tests using test server\n" " -use-fully-isolated-test-server Run each test in isolated server\n" " -capability <name> Compile with the given capability\n" + + // Recent Windows runtime versions started opening a dialog popup window when + // `abort()` is called, which breaks the CI workflow and some scripts that + // expect a normal termination. + // It can be helpful for debugging but we should ignore it for CI. + " -ignore-abort-msg Ignore abort message dialog popup on Windows\n" + " -enable-debug-layers [true|false] Enable or disable Validation Layer for Vulkan\n" " and Debug Device for DX\n" " -cache-rhi-device [true|false] Enable or disable RHI device caching (default: true)\n" @@ -433,6 +440,13 @@ static bool _isSubCommand(const char* arg) } optionsOut->capabilities.add(*argCursor++); } + else if (strcmp(arg, "-ignore-abort-msg") == 0) + { + optionsOut->ignoreAbortMsg = true; +#ifdef _MSC_VER + _set_abort_behavior(0, _WRITE_ABORT_MSG); +#endif + } else if (strcmp(arg, "-expected-failure-list") == 0) { if (argCursor == argEnd) |
