cmd/tests: Fix handling of synchronization line mismatches.

Francois Gouget fgouget at free.fr
Wed Nov 18 07:56:43 CST 2015


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

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 programs/cmd/tests/batch.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

This should fix bug 31889:
https://bugs.winehq.org/show_bug.cgi?id=31889


diff --git a/programs/cmd/tests/batch.c b/programs/cmd/tests/batch.c
index c1847d6..9b54089 100644
--- a/programs/cmd/tests/batch.c
+++ b/programs/cmd/tests/batch.c
@@ -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')
-- 
2.6.2




More information about the wine-patches mailing list