BUG: Avoid error diagnostic popups on windows for test that crashes on purpose.

This commit is contained in:
Brad King 2005-04-13 15:57:22 -04:00
parent be1084b524
commit 3a7920d461
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ int test3(int argc, const char* argv[])
int test4(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; (void)argc; (void)argv;
fprintf(stdout, "Output before crash on stdout from crash test.\n"); fprintf(stdout, "Output before crash on stdout from crash test.\n");
fprintf(stderr, "Output before crash on stderr from crash test.\n"); fprintf(stderr, "Output before crash on stderr from crash test.\n");