mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 19:07:20 +00:00
winetest: Don't parse the test list if 'test --list' failed.
Any non-zero exit code is grounds for ignoring the 'test --list' output. This also causes get_subtests() to return the actual process exit code rather than a generic internal error when it fails to parse the test list. Signed-off-by: Francois Gouget <fgouget@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e618fb526d
commit
100b81e8a8
|
@ -735,9 +735,12 @@ get_subtests (const char *tempdir, struct wine_test *test, LPSTR res_name)
|
|||
}
|
||||
heap_free (cmd);
|
||||
|
||||
if (status == -2)
|
||||
if (status)
|
||||
{
|
||||
report (R_ERROR, "Cannot run %s error %u", test->exename, err);
|
||||
if (status == -2)
|
||||
report (R_ERROR, "Cannot run %s error %u", test->exename, err);
|
||||
else
|
||||
err = status;
|
||||
CloseHandle( subfile );
|
||||
goto quit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue