Commit 67b690db authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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: 's avatarAndré Hentschel <nerv@dawncrow.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fe09e2db
...@@ -1250,7 +1250,8 @@ static void test_WithWSAStartup(void) ...@@ -1250,7 +1250,8 @@ static void test_WithWSAStartup(void)
res = getsockname(sock, (struct sockaddr *)&saddr, &size); res = getsockname(sock, (struct sockaddr *)&saddr, &size);
error = WSAGetLastError(); error = WSAGetLastError();
ok(res == SOCKET_ERROR, "Test[%d]: getsockname should have failed\n", i); 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);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment