cmd/tests: Fix handling of synchronization line mismatches.

If the synchronization line does not match assume that we skipped some tests.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2015-11-18 14:56:43 +01:00 committed by Alexandre Julliard
parent cd50e1518f
commit a9513cf446
1 changed files with 2 additions and 1 deletions

View File

@ -320,7 +320,8 @@ static void test_output(const char *out_data, DWORD out_size, const char *exp_da
/* If we rewind to the beginning of the line, don't increment line number */
line--;
}
else if (!is_exp_resync || !err)
else if (!is_exp_resync || !err ||
(is_exp_resync && is_out_resync && err))
{
exp_ptr = exp_nl+1;
if(exp_nl+1 < exp_data+exp_size && exp_nl[0] == '\r' && exp_nl[1] == '\n')