Dan Kegel : ws2_32/tests: Cannot reliably detect bad hostnames in "modern" internet.
Module: wine Branch: master Commit: 95beaa21b87a6eec19dc788652ee2c87621996ea URL: http://source.winehq.org/git/wine.git/?a=commit;h=95beaa21b87a6eec19dc788652... Author: Dan Kegel <dank(a)kegel.com> Date: Wed May 14 04:03:42 2008 -0700 ws2_32/tests: Cannot reliably detect bad hostnames in "modern" internet. --- dlls/ws2_32/tests/sock.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index ce75811..13bb705 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -1828,9 +1828,14 @@ 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 } static void test_inet_addr(void)
participants (1)
-
Alexandre Julliard