ws2_32/tests: Mark WinNT result as broken
Bruno Jesus
00cpxxx at gmail.com
Thu Sep 19 07:17:05 CDT 2013
Solve this issue:
http://test.winehq.org/data/2034f515981ead985c4c24fac7b6935326cdb490/nt4_fg-winnt4-6sp/ws2_32:protocol.html
-------------- next part --------------
diff --git a/dlls/ws2_32/tests/protocol.c b/dlls/ws2_32/tests/protocol.c
index 1b9a429..9c6d80d 100644
--- a/dlls/ws2_32/tests/protocol.c
+++ b/dlls/ws2_32/tests/protocol.c
@@ -100,7 +100,8 @@ static void test_WSAEnumProtocolsA(void)
ret = WSAEnumProtocolsA( ptest, NULL, &len );
ok( ret == SOCKET_ERROR, "WSAEnumProtocolsA() succeeded unexpectedly\n");
error = WSAGetLastError();
- ok( error == WSAENOBUFS, "Expected 10055, received %d\n", error);
+ ok( error == WSAENOBUFS || broken(error == WSAEFAULT) /* NT4 */,
+ "Expected 10055, received %d\n", error);
buffer = HeapAlloc( GetProcessHeap(), 0, len );
@@ -166,7 +167,8 @@ static void test_WSAEnumProtocolsW(void)
ret = WSAEnumProtocolsW( ptest, NULL, &len );
ok( ret == SOCKET_ERROR, "WSAEnumProtocolsW() succeeded unexpectedly\n");
error = WSAGetLastError();
- ok( error == WSAENOBUFS, "Expected 10055, received %d\n", error);
+ ok( error == WSAENOBUFS || broken(error == WSAEFAULT) /* NT4 */,
+ "Expected 10055, received %d\n", error);
buffer = HeapAlloc( GetProcessHeap(), 0, len );
More information about the wine-patches
mailing list