ws2_32: Skip some tests on broken ISPs.

This commit is contained in:
Austin English 2014-03-22 13:50:37 -07:00 committed by Alexandre Julliard
parent 4bcc492fe3
commit 171748da4d
1 changed files with 15 additions and 0 deletions

View File

@ -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);