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:
Francois Gouget 2021-03-16 10:34:17 +01:00 committed by Alexandre Julliard
parent e618fb526d
commit 100b81e8a8
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}