Commit e2c48c59 authored by Alexandre Julliard's avatar Alexandre Julliard

tests: Try to avoid message boxes popping up in non-interactive testing.

parent 15c6057c
...@@ -160,6 +160,10 @@ static void doCrash(int argc, char** argv) ...@@ -160,6 +160,10 @@ static void doCrash(int argc, char** argv)
{ {
char* p; char* p;
/* make sure the exception gets to the debugger */
SetErrorMode( 0 );
SetUnhandledExceptionFilter( NULL );
if (argc >= 4) if (argc >= 4)
{ {
crash_blackbox_t blackbox; crash_blackbox_t blackbox;
......
...@@ -593,6 +593,8 @@ int main( int argc, char **argv ) ...@@ -593,6 +593,8 @@ int main( int argc, char **argv )
if (GetEnvironmentVariableA( "WINETEST_INTERACTIVE", p, sizeof(p) )) winetest_interactive = atoi(p); if (GetEnvironmentVariableA( "WINETEST_INTERACTIVE", p, sizeof(p) )) winetest_interactive = atoi(p);
if (GetEnvironmentVariableA( "WINETEST_REPORT_SUCCESS", p, sizeof(p) )) report_success = atoi(p); if (GetEnvironmentVariableA( "WINETEST_REPORT_SUCCESS", p, sizeof(p) )) report_success = atoi(p);
if (!winetest_interactive) SetErrorMode( SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX );
if (!argv[1]) if (!argv[1])
{ {
if (winetest_testlist[0].name && !winetest_testlist[1].name) /* only one test */ if (winetest_testlist[0].name && !winetest_testlist[1].name) /* only one test */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment