This avoids entering the loop and flood the result file until we reach the 120 s test timeout I saw that twice and got 7.5MB big result files
tested: https://testbot.winehq.org/JobDetails.pl?Key=39844
The WININET_E_INVALID_CA failure on the win2003 testbot is unrelated: https://test.winehq.org/data/acb879c9d2feae69e8b5b1ede28523a29aef1b89/2003_n...
Signed-off-by: Detlef Riekenberg wine.dev@web.de --- 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 46504e1b0c..c9e053fbea 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);