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

This commit is contained in:
Alexandre Julliard 2010-07-19 23:45:28 +02:00
parent 15c6057ce1
commit e2c48c5952
2 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,10 @@ static void doCrash(int argc, char** argv)
{
char* p;
/* make sure the exception gets to the debugger */
SetErrorMode( 0 );
SetUnhandledExceptionFilter( NULL );
if (argc >= 4)
{
crash_blackbox_t blackbox;

View File

@ -593,6 +593,8 @@ int main( int argc, char **argv )
if (GetEnvironmentVariableA( "WINETEST_INTERACTIVE", p, sizeof(p) )) winetest_interactive = 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 (winetest_testlist[0].name && !winetest_testlist[1].name) /* only one test */