Austin English : ws2_32: Skip some tests on broken ISPs.
Alexandre Julliard
julliard at winehq.org
Mon Mar 24 15:59:45 CDT 2014
Module: wine
Branch: master
Commit: 171748da4d7f77e6fb8db76eaa6d513a3ebf15a4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=171748da4d7f77e6fb8db76eaa6d513a3ebf15a4
Author: Austin English <austinenglish at gmail.com>
Date: Sat Mar 22 13:50:37 2014 -0700
ws2_32: Skip some tests on broken ISPs.
---
dlls/ws2_32/tests/sock.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 00947c9..dcedd99 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -5518,11 +5518,21 @@ static void test_GetAddrInfoW(void)
result = (ADDRINFOW *)0xdeadbeef;
ret = pGetAddrInfoW(NULL, NULL, NULL, &result);
+ if(ret == 0)
+ {
+ skip("nxdomain returned success. Broken ISP redirects?\n");
+ return;
+ }
ok(ret == WSAHOST_NOT_FOUND, "got %d expected WSAHOST_NOT_FOUND\n", ret);
ok(result == NULL, "got %p\n", result);
result = (ADDRINFOW *)0xdeadbeef;
ret = pGetAddrInfoW(nxdomain, NULL, NULL, &result);
+ if(ret == 0)
+ {
+ skip("nxdomain returned success. Broken ISP redirects?\n");
+ return;
+ }
ok(ret == WSAHOST_NOT_FOUND, "got %d expected WSAHOST_NOT_FOUND\n", ret);
ok(result == NULL, "got %p\n", result);
@@ -5659,6 +5669,11 @@ static void test_getaddrinfo(void)
result = (ADDRINFOA *)0xdeadbeef;
ret = pgetaddrinfo("nxdomain.codeweavers.com", NULL, NULL, &result);
+ if(ret == 0)
+ {
+ skip("nxdomain returned success. Broken ISP redirects?\n");
+ return;
+ }
ok(ret == WSAHOST_NOT_FOUND, "got %d expected WSAHOST_NOT_FOUND\n", ret);
ok(result == NULL, "got %p\n", result);
More information about the wine-cvs
mailing list