Zebediah Figura : httpapi/tests: Avoid some test failures with newer Windows 10.

Alexandre Julliard julliard at winehq.org
Mon Dec 28 16:09:48 CST 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sat Dec 26 16:19:47 2020 -0600

httpapi/tests: Avoid some test failures with newer Windows 10.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/httpapi/tests/httpapi.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/httpapi/tests/httpapi.c b/dlls/httpapi/tests/httpapi.c
index 5d79197505c..1d1ad56e9f6 100644
--- a/dlls/httpapi/tests/httpapi.c
+++ b/dlls/httpapi/tests/httpapi.c
@@ -304,7 +304,7 @@ static void test_v1_server(void)
     ok(req->BytesReceived == strlen(req_text), "Got %s bytes.\n", wine_dbgstr_longlong(req->BytesReceived));
     ok(!req->EntityChunkCount, "Got %u entity chunks.\n", req->EntityChunkCount);
     ok(!req->pEntityChunks, "Got entity chunks %p.\n", req->pEntityChunks);
-    ok(!req->RawConnectionId, "Got SSL connection ID %s.\n", wine_dbgstr_longlong(req->RawConnectionId));
+    /* req->RawConnectionId is zero until Win10 2004. */
     ok(!req->pSslInfo, "Got SSL info %p.\n", req->pSslInfo);
 
     response.StatusCode = 418;
@@ -1372,10 +1372,9 @@ static void test_v2_server(void)
     ok(req->BytesReceived == strlen(req_text), "Got %s bytes.\n", wine_dbgstr_longlong(req->BytesReceived));
     ok(!req->EntityChunkCount, "Got %u entity chunks.\n", req->EntityChunkCount);
     ok(!req->pEntityChunks, "Got entity chunks %p.\n", req->pEntityChunks);
-    ok(!req->RawConnectionId, "Got SSL connection ID %s.\n", wine_dbgstr_longlong(req->RawConnectionId));
+    /* req->RawConnectionId is zero until Win10 2004. */
     ok(!req->pSslInfo, "Got SSL info %p.\n", req->pSslInfo);
-    ok(!reqv2->RequestInfoCount, "Got request info count %u.\n", reqv2->RequestInfoCount);
-    ok(!reqv2->pRequestInfo, "Got request info %p.\n", reqv2->pRequestInfo);
+    /* RequestInfoCount and pRequestInfo are zero until Win10 1909. */
 
     response.s.StatusCode = 418;
     response.s.pReason = "I'm a teapot";




More information about the wine-cvs mailing list