Zebediah Figura : ws2_32/tests: Avoid some more test failures on Vista.

Alexandre Julliard julliard at winehq.org
Mon Jun 21 16:14:54 CDT 2021


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sun Jun 20 11:05:52 2021 -0500

ws2_32/tests: Avoid some more test failures on Vista.

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

---

 dlls/ws2_32/tests/sock.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index f67bc4efae5..b171e6c03e1 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -3816,6 +3816,9 @@ static void test_fionread_siocatmark(void)
     ret = recv(client, buffer, 1, MSG_OOB);
     ok(ret == 1, "got %d\n", ret);
 
+    /* wait for the data to be available */
+    check_poll_mask_todo(client, POLLRDBAND, POLLRDBAND);
+
     check_fionread_siocatmark_todo(client, 2, FALSE);
 
     ret = recv(client, buffer, 5, 0);
@@ -3831,6 +3834,9 @@ static void test_fionread_siocatmark(void)
     ret = send(server, "a", 1, MSG_OOB);
     ok(ret == 1, "got %d\n", ret);
 
+    /* wait for the data to be available */
+    check_poll_mask(client, POLLRDBAND, POLLRDBAND);
+
     ret = 1;
     ret = setsockopt(client, SOL_SOCKET, SO_OOBINLINE, (char *)&ret, sizeof(ret));
     ok(!ret, "got error %u\n", WSAGetLastError());
@@ -3845,6 +3851,9 @@ static void test_fionread_siocatmark(void)
     ret = send(server, "a", 1, MSG_OOB);
     ok(ret == 1, "got %d\n", ret);
 
+    /* wait for the data to be available */
+    check_poll_mask(client, POLLRDNORM, POLLRDNORM);
+
     check_fionread_siocatmark(client, 1, TRUE);
 
     closesocket(client);




More information about the wine-cvs mailing list