Huw Davies : wininet/tests: Fix tests on Win 2k.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 12 07:36:13 CDT 2015
Module: wine
Branch: master
Commit: 53dbffd31430e168234925f8406e49e24b09c7d5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=53dbffd31430e168234925f8406e49e24b09c7d5
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Jun 12 10:34:13 2015 +0100
wininet/tests: Fix tests on Win 2k.
---
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);
More information about the wine-cvs
mailing list