summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-13 19:57:22 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-13 19:57:22 (GMT)
commit3a7920d46113c4bc64980febf16119553a28eec2 (patch)
treeb865d475a1590f528bd840b1f24517d32020e833 /Source
parentbe1084b5241725095a7e0591eaf593a4606204a1 (diff)
downloadCMake-3a7920d46113c4bc64980febf16119553a28eec2.zip
CMake-3a7920d46113c4bc64980febf16119553a28eec2.tar.gz
CMake-3a7920d46113c4bc64980febf16119553a28eec2.tar.bz2
BUG: Avoid error diagnostic popups on windows for test that crashes on purpose.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/testProcess.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c
index b34c49c..e8dc53d 100644
--- a/Source/kwsys/testProcess.c
+++ b/Source/kwsys/testProcess.c
@@ -61,6 +61,10 @@ int test3(int argc, const char* argv[])
int test4(int argc, const char* argv[])
{
+#if defined(_WIN32)
+ /* Avoid error diagnostic popups since we are crashing on purpose. */
+ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
+#endif
(void)argc; (void)argv;
fprintf(stdout, "Output before crash on stdout from crash test.\n");
fprintf(stderr, "Output before crash on stderr from crash test.\n");