tests: Try to avoid message boxes popping up in non-interactive testing.
This commit is contained in:
parent
15c6057ce1
commit
e2c48c5952
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue