From 7ad7d18ea7a55763aa39775c8dd26bc7fd9a0f7b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 17 Dec 2012 06:22:37 +0000 Subject: [PATCH] debug output for test_http_connection --- test/test_http_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_http_connection.cpp b/test/test_http_connection.cpp index c7d01f1b6..f9322077e 100644 --- a/test/test_http_connection.cpp +++ b/test/test_http_connection.cpp @@ -164,6 +164,7 @@ void run_suite(std::string const& protocol, proxy_settings ps, int port) // only run the tests to handle NX_DOMAIN if we have a proper internet // connection that doesn't inject false DNS responses (like Comcast does) hostent* h = gethostbyname("non-existent-domain.se"); + printf("gethostbyname(\"non-existent-domain.se\") = %p. h_errno = %d\n", h, h_errno); if (h == 0 && h_errno == HOST_NOT_FOUND) { // if we're going through an http proxy, we won't get the same error as if the hostname