From 3a7920d46113c4bc64980febf16119553a28eec2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 13 Apr 2005 15:57:22 -0400 Subject: [PATCH] BUG: Avoid error diagnostic popups on windows for test that crashes on purpose. --- Source/kwsys/testProcess.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c index b34c49cf5..e8dc53d52 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");