=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ws2_32/tests: Don' t test WSAGetLastError() value on success.

Alexandre Julliard julliard at winehq.org
Mon Feb 5 16:48:25 CST 2018


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Fri Feb  2 20:34:26 2018 +0100

ws2_32/tests: Don't test WSAGetLastError() value on success.

This cuts the test output from around 1600 to around 1100 lines

Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ws2_32/tests/sock.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index e188724..3bc3d66 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -1250,7 +1250,8 @@ static void test_WithWSAStartup(void)
             res = getsockname(sock, (struct sockaddr *)&saddr, &size);
             error = WSAGetLastError();
             ok(res == SOCKET_ERROR, "Test[%d]: getsockname should have failed\n", i);
-            ok(error == WSAENOTSOCK, "Test[%d]: expected 10038, got %d\n", i, error);
+            if (res == SOCKET_ERROR)
+                ok(error == WSAENOTSOCK, "Test[%d]: expected 10038, got %d\n", i, error);
         }
     }
 




More information about the wine-cvs mailing list