Paul Vriens : ws2_32/tests: Fix test failures on Win9x/WinMe.

Alexandre Julliard julliard at winehq.org
Mon Feb 8 11:06:08 CST 2010


Module: wine
Branch: master
Commit: 45fc31e803d9688890142eb576549148fd421d9e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=45fc31e803d9688890142eb576549148fd421d9e

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Mon Feb  8 09:16:03 2010 +0100

ws2_32/tests: Fix test failures on Win9x/WinMe.

---

 dlls/ws2_32/tests/sock.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 72242c4..be846fa 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -3281,7 +3281,8 @@ static void test_getpeername(void)
 
     ret = getpeername(sock, NULL, NULL);
     ok(ret == SOCKET_ERROR, "Expected getpeername to return SOCKET_ERROR, got %d\n", ret);
-    ok(WSAGetLastError() == WSAENOTCONN,
+    ok(WSAGetLastError() == WSAENOTCONN ||
+       broken(WSAGetLastError() == WSAEFAULT), /* Win9x and WinMe */
        "Expected WSAGetLastError() to return WSAENOTCONN, got %d\n", WSAGetLastError());
 
     memset(&sa, 0, sizeof(sa));
@@ -3296,7 +3297,8 @@ static void test_getpeername(void)
 
     ret = getpeername(sock, NULL, NULL);
     ok(ret == SOCKET_ERROR, "Expected getpeername to return SOCKET_ERROR, got %d\n", ret);
-    ok(WSAGetLastError() == WSAENOTCONN,
+    ok(WSAGetLastError() == WSAENOTCONN ||
+       broken(WSAGetLastError() == WSAEFAULT), /* Win9x and WinMe */
        "Expected WSAGetLastError() to return WSAENOTCONN, got %d\n", WSAGetLastError());
 
     ret = connect(sock, (struct sockaddr*)&sa, sizeof(sa));




More information about the wine-cvs mailing list