winhttp/tests: Fix test failures.

Hans Leidekker hans at codeweavers.com
Thu Mar 17 04:13:59 CDT 2016


These were introduced with the web server upgrade.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
 dlls/winhttp/tests/winhttp.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index d676dd8..f81c07c 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -1004,11 +1004,13 @@ static void test_secure_connection(void)
     ok(ret, "failed to send request %u\n", GetLastError());
 
     ret = WinHttpReceiveResponse(req, NULL);
-    ok(!ret || proxy_active(), "succeeded unexpectedly\n");
+    ok(ret, "failed to receive response %u\n", GetLastError());
 
-    size = 0;
-    ret = WinHttpQueryHeaders(req, WINHTTP_QUERY_RAW_HEADERS_CRLF, NULL, NULL, &size, NULL);
-    ok(!ret, "succeeded unexpectedly\n");
+    status = 0xdeadbeef;
+    size = sizeof(status);
+    ret = WinHttpQueryHeaders(req, WINHTTP_QUERY_STATUS_CODE|WINHTTP_QUERY_FLAG_NUMBER, NULL, &status, &size, NULL);
+    ok(ret, "header query failed %u\n", GetLastError());
+    ok(status == HTTP_STATUS_BAD_REQUEST, "got %u\n", status);
 
     WinHttpCloseHandle(req);
 
-- 
2.1.4




More information about the wine-patches mailing list