Hans Leidekker : winhttp/tests: Fix test failures.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 12 06:45:27 CDT 2016


Module: wine
Branch: stable
Commit: 23bd4cc385ec2ce080184c693b84a33bdf2c8ea1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=23bd4cc385ec2ce080184c693b84a33bdf2c8ea1

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Mar 17 10:13:59 2016 +0100

winhttp/tests: Fix test failures.

These were introduced with the web server upgrade.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 05a13fb1558f19687f2a22c6566ed81108f5a5e0)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 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 9442085..ec204b5 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);
 




More information about the wine-cvs mailing list