winhttp: Skip tests on broken ISPs.

This commit is contained in:
Austin English 2014-03-22 14:34:26 -07:00 committed by Alexandre Julliard
parent 171748da4d
commit 9665d5a409
1 changed files with 5 additions and 0 deletions

View File

@ -1721,6 +1721,11 @@ static void test_resolve_timeout(void)
SetLastError(0xdeadbeef);
ret = WinHttpSendRequest(req, NULL, 0, NULL, 0, 0, 0);
if(ret == 1)
{
skip("nxdomain returned success. Broken ISP redirects?\n");
return;
}
ok(!ret, "sent request\n");
ok(GetLastError() == ERROR_WINHTTP_NAME_NOT_RESOLVED,
"expected ERROR_WINHTTP_NAME_NOT_RESOLVED got %u\n", GetLastError());