[PATCH 1/2] ws2_32/tests: Don't test WSAGetLastError() value on success
André Hentschel
nerv at dawncrow.de
Fri Feb 2 13:34:26 CST 2018
This cuts the test output from around 1600 to around 1100 lines
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
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);
}
}
--
2.7.4
More information about the wine-devel
mailing list