https://bugs.winehq.org/show_bug.cgi?id=48651
Bug ID: 48651 Summary: Fix handling of child test processes Product: Wine-Testbot Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: unknown Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
Wine's test.h provides a winetest_wait_child_process() function to wait for child processes. But when an error happens it issues some messages which the TestBot does not recognize.
* If waiting for the child process fails the error message does not look like a 'Test failed' error message which it should to simplify things.
* But winetest_wait_child_process() does not know on which line it was called so calling winetest_ok() would not provide the right line number.
* The failure to wait for the child process should also distinguish between CreateProcess() errors (usually those are already reported by the caller), timeouts and other errors.
* The Testbot does not recognize the 'child process crashed' message. This causes it to find mismatches between the number of 'Test failed' messages and the final summary.
* The TestBot also does not recognize the 'failures in child process' summary line but that probably does not matter.