Michael Stefaniuc : ws2_32/tests: Actually test a return value (PVS-Studio ).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Mar 4 09:22:17 CST 2015


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Mar  4 10:14:40 2015 +0100

ws2_32/tests: Actually test a return value (PVS-Studio).

---

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

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 6569515..7155a09 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -4374,6 +4374,7 @@ static void test_ioctlsocket(void)
     ok(ret != SOCKET_ERROR, "setsockopt failed unexpectedly\n");
     arg = 0;
     ret = ioctlsocket(sock, SIOCATMARK, &arg);
+    ok(ret != SOCKET_ERROR, "ioctlsocket failed unexpectedly\n");
     ok(arg, "SIOCATMARK expected a non-zero value\n");
 
     ret = WSAIoctl(sock, SIO_KEEPALIVE_VALS, &arg, 0, NULL, 0, &arg, NULL, NULL);




More information about the wine-cvs mailing list