Browse files

test: windows: fix application crashed popup in debug version

  • Loading branch information...
1 parent 7aa1261 commit 66be91e66b4efc2e1af266c08fffcfb18317904a @pH200 committed Oct 6, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/runner-win.c
View
3 test/runner-win.c
@@ -24,6 +24,7 @@
#include <malloc.h>
#include <stdio.h>
#include <process.h>
+#include <crtdbg.h>
#include "task.h"
#include "runner.h"
@@ -43,6 +44,8 @@ void platform_init(int argc, char **argv) {
/* Disable the "application crashed" popup. */
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX |
SEM_NOOPENFILEERRORBOX);
+ _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
+ _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG);
_setmode(0, _O_BINARY);
_setmode(1, _O_BINARY);

0 comments on commit 66be91e

Please sign in to comment.