wininet/tests: Fix tests on Win 2k.
Huw Davies
huw at codeweavers.com
Fri Jun 12 04:34:13 CDT 2015
---
dlls/wininet/tests/http.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index bd4ca54..df7dd07 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -4838,7 +4838,13 @@ static void test_secure_connection(void)
ok(req != NULL, "HttpOpenRequest failed\n");
ret = HttpSendRequestA(req, NULL, 0, NULL, 0);
- ok(ret, "HttpSendRequest failed: %d\n", GetLastError());
+ ok(ret || broken(GetLastError() == ERROR_INTERNET_CANNOT_CONNECT),
+ "HttpSendRequest failed: %d\n", GetLastError());
+ if (!ret)
+ {
+ win_skip("Cannot connect to https.\n");
+ goto done;
+ }
size = sizeof(flags);
ret = InternetQueryOptionA(req, INTERNET_OPTION_SECURITY_FLAGS, &flags, &size);
@@ -4963,6 +4969,7 @@ static void test_secure_connection(void)
}
HeapFree(GetProcessHeap(), 0, certificate_structW);
+done:
InternetCloseHandle(req);
InternetCloseHandle(con);
InternetCloseHandle(ses);
--
1.8.0
More information about the wine-patches
mailing list