Commit ce42c95a authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

winetest: Detect if an unhandled exception occurred in a child process and print…

winetest: Detect if an unhandled exception occurred in a child process and print an appropriate message. Avoid getting caught incrementing the failure count in this case, as it could take a very long time to complete.
parent 2dc9ed30
......@@ -352,10 +352,18 @@ void winetest_wait_child_process( HANDLE process )
if (exit_code)
{
fprintf( stdout, "%s: %u failures in child process\n",
current_test->name, exit_code );
while (exit_code-- > 0)
InterlockedIncrement(&failures);
if (exit_code > 255)
{
fprintf( stdout, "%s: exception 0x%08x in child process\n", current_test->name, exit_code );
InterlockedIncrement( &failures );
}
else
{
fprintf( stdout, "%s: %u failures in child process\n",
current_test->name, exit_code );
while (exit_code-- > 0)
InterlockedIncrement(&failures);
}
}
}
......
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