Bug 1263857 - (followup) Disable windows crash reporter on automated tests. r=sfink

This commit is contained in:
Tooru Fujisawa 2016-04-26 08:08:46 +09:00
Родитель 99d9be7b2c
Коммит cee2cf665f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -7133,7 +7133,7 @@ PreInit()
{
#ifdef XP_WIN
const char* crash_option = getenv("XRE_NO_WINDOWS_CRASH_DIALOG");
if (crash_option && strncmp(crash_option, "1", 1)) {
if (crash_option && crash_option[0] == '1') {
// Disable the segfault dialog. We want to fail the tests immediately
// instead of hanging automation.
UINT newMode = SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX;