Hans Leidekker : wininet/tests: Skip proxy tests on broken wininet.
Alexandre Julliard
julliard at winehq.org
Wed May 1 13:27:27 CDT 2013
Module: wine
Branch: master
Commit: d8c92b6294eeb84bd245fc264caf801194ac1c86
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8c92b6294eeb84bd245fc264caf801194ac1c86
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed May 1 12:13:24 2013 +0200
wininet/tests: Skip proxy tests on broken wininet.
---
dlls/wininet/tests/http.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index 664fbbf..5f0bf43 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -2193,7 +2193,12 @@ static void test_proxy_direct(int port)
ok(hr != NULL, "HttpOpenRequest failed\n");
r = HttpSendRequest(hr, NULL, 0, NULL, 0);
- ok(r, "HttpSendRequest failed %u\n", GetLastError());
+ ok(r || broken(!r), "HttpSendRequest failed %u\n", GetLastError());
+ if (!r)
+ {
+ win_skip("skipping proxy tests on broken wininet\n");
+ goto done;
+ }
test_status_code(hr, 407);
@@ -2419,6 +2424,7 @@ static void test_proxy_direct(int port)
ok(r, "HttpQueryInfo failed\n");
ok(!strcmp(buffer, "200"), "proxy code wrong\n");
+done:
InternetCloseHandle(hr);
InternetCloseHandle(hc);
InternetCloseHandle(hi);
More information about the wine-cvs
mailing list