Juan Lang : winhttp/tests: Skip secure connection tests if the request fails.
Alexandre Julliard
julliard at winehq.org
Mon Dec 14 09:51:10 CST 2009
Module: wine
Branch: master
Commit: c02ee1886924809039b5d38a3e2e0ecb33f98cef
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c02ee1886924809039b5d38a3e2e0ecb33f98cef
Author: Juan Lang <juan.lang at gmail.com>
Date: Fri Dec 11 14:10:27 2009 -0800
winhttp/tests: Skip secure connection tests if the request fails.
---
dlls/winhttp/tests/winhttp.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 342dde2..d9966ea 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -783,6 +783,11 @@ static void test_secure_connection(void)
ret = WinHttpSendRequest(req, NULL, 0, NULL, 0, 0, 0);
ok(ret, "failed to send request %u\n", GetLastError());
+ if (!ret)
+ {
+ skip("secure connection failed, skipping remaining secure tests\n");
+ goto cleanup;
+ }
size = sizeof(cert);
ret = WinHttpQueryOption(req, WINHTTP_OPTION_SERVER_CERT_CONTEXT, &cert, &size );
@@ -806,6 +811,7 @@ static void test_secure_connection(void)
ret = WinHttpQueryHeaders(req, WINHTTP_QUERY_RAW_HEADERS_CRLF, NULL, NULL, &size, NULL);
ok(!ret, "succeeded unexpectedly\n");
+cleanup:
WinHttpCloseHandle(req);
WinHttpCloseHandle(con);
WinHttpCloseHandle(ses);
More information about the wine-cvs
mailing list