summaryrefslogtreecommitdiffstats
path: root/tools/test-server/test-server-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-server/test-server-main.cpp')
-rw-r--r--tools/test-server/test-server-main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/test-server/test-server-main.cpp b/tools/test-server/test-server-main.cpp
index e98be6e5a..4ce9377f5 100644
--- a/tools/test-server/test-server-main.cpp
+++ b/tools/test-server/test-server-main.cpp
@@ -191,6 +191,18 @@ SlangResult TestServer::init(int argc, const char* const* argv)
{
m_exePath = argv[0];
+ // Command-line argument parsing
+ for (int i = 1; i < argc; i++)
+ {
+ if (strcmp(argv[i], "-ignore-abort-msg") == 0)
+ {
+#ifdef _MSC_VER
+ _set_abort_behavior(0, _WRITE_ABORT_MSG);
+#endif
+ }
+ // Ignore unknown arguments for now
+ }
+
String canonicalPath;
if (SLANG_SUCCEEDED(Path::getCanonical(m_exePath, canonicalPath)))
{