[1/3] wininet/tests: Improve error reporting in a couple of tests.

Hans Leidekker hans at codeweavers.com
Thu Apr 25 03:13:40 CDT 2013


---
 dlls/wininet/tests/http.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index fa01917..6351a1a 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -2114,7 +2114,7 @@ static void test_proxy_indirect(int port)
     ok(hr != NULL, "HttpOpenRequest failed\n");
 
     r = HttpSendRequest(hr, NULL, 0, NULL, 0);
-    ok(r, "HttpSendRequest failed\n");
+    ok(r, "HttpSendRequest failed %u\n", GetLastError());
 
     sz = sizeof buffer;
     r = HttpQueryInfo(hr, HTTP_QUERY_PROXY_AUTHENTICATE, buffer, &sz, NULL);
@@ -2181,7 +2181,7 @@ static void test_proxy_direct(int port)
     ok(hr != NULL, "HttpOpenRequest failed\n");
 
     r = HttpSendRequest(hr, NULL, 0, NULL, 0);
-    ok(r, "HttpSendRequest failed\n");
+    ok(r, "HttpSendRequest failed %u\n", GetLastError());
 
     test_status_code(hr, 407);
 
@@ -2401,7 +2401,7 @@ static void test_proxy_direct(int port)
     ok(sz == lstrlenW(passwordW), "got %u\n", sz);
 
     r = HttpSendRequest(hr, NULL, 0, NULL, 0);
-    ok(r, "HttpSendRequest failed\n");
+    ok(r, "HttpSendRequest failed %u\n", GetLastError());
     sz = sizeof buffer;
     r = HttpQueryInfo(hr, HTTP_QUERY_STATUS_CODE, buffer, &sz, NULL);
     ok(r, "HttpQueryInfo failed\n");
-- 
1.7.10.4







More information about the wine-patches mailing list