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@web.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Detlef Riekenberg 2018-07-12 21:04:24 +02:00 committed by Alexandre Julliard
parent 75464b13fd
commit 054c916c40
1 changed files with 2 additions and 0 deletions

View File

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