Detlef Riekenberg : winhttp/tests: Skip the tests when we encounter a failure.

Alexandre Julliard julliard at winehq.org
Fri Jul 13 15:01:46 CDT 2018


Module: wine
Branch: master
Commit: 054c916c4074d9114708e1bc08bc2ef8782a3f0c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=054c916c4074d9114708e1bc08bc2ef8782a3f0c

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Thu Jul 12 21:04:24 2018 +0200

winhttp/tests: Skip the tests when we encounter a failure.

This avoids entering the loop and flood the result file until we reach
the 120s test timeout.

Signed-off-by: Detlef Riekenberg <wine.dev at web.de>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winhttp/tests/winhttp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 46504e1..c9e053f 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -4417,9 +4417,11 @@ static void test_chunked_read(void)
         goto done;
     }
     ok( ret, "WinHttpSendRequest failed with error %u\n", GetLastError() );
+    if (!ret) goto done;
 
     ret = WinHttpReceiveResponse( req, NULL );
     ok( ret, "WinHttpReceiveResponse failed with error %u\n", GetLastError() );
+    if (!ret) goto done;
 
     header[0] = 0;
     len = sizeof(header);




More information about the wine-cvs mailing list