Dan Kegel : ws2_32/tests: Cannot reliably detect bad hostnames in "modern" internet.

Alexandre Julliard julliard at winehq.org
Wed May 14 06:43:48 CDT 2008


Module: wine
Branch: master
Commit: 95beaa21b87a6eec19dc788652ee2c87621996ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=95beaa21b87a6eec19dc788652ee2c87621996ea

Author: Dan Kegel <dank at 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)




More information about the wine-cvs mailing list