test: Add _win32_seterrormode.fail.cpp to silence Exception diaalogs on Windows desktop.

This commit is contained in:
NAKAMURA Takumi
2011-04-25 17:51:12 +09:00
parent 6d50da017f
commit fd9aadef51
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
#include <windows.h>
namespace {
class Win32ctor {
public:
Win32ctor() {
SetErrorMode(SEM_FAILCRITICALERRORS |
SEM_NOGPFAULTERRORBOX |
SEM_NOOPENFILEERRORBOX);
}
};
static Win32ctor ctor;
}