From d88ee55e686c647b372d82c1349b06205561878a Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Thu, 15 May 2008 09:49:40 +0200 Subject: [PATCH] ws2_32: Test for invalid hostnames again. --- dlls/ws2_32/tests/sock.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 13bb7051b49..405b47eb51e 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -1828,14 +1828,10 @@ static void test_gethostbyname_hack(void) } } -#if 0 - /* Can't expect ISPs to behave anymore; many send you to spam sites - * if you type in a bogus URL nowadays. - */ he = NULL; - he = gethostbyname("someweirdandbogusname"); - ok(he == NULL, "gethostbyname(\"someweirdandbogusname\") succeeded.\n"); -#endif + he = gethostbyname("nonexistent.winehq.org"); + /* Don't check for the return value, as some braindead ISPs will kindly + * resolve nonexistent host names to addresses of the ISP's spam pages. */ } static void test_inet_addr(void) -- 2.11.4.GIT