Commit 08c1b8fcebba98f5a4638b6bd7fa3bf4944bb3a8

Etienne Samson 2017-08-28T21:24:13

cmake: simplify some HTTPS tests

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 6e2cd9d..f3becef 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -52,7 +52,7 @@ IF (MSVC_IDE)
 	SET_SOURCE_FILES_PROPERTIES("precompiled.c" COMPILE_FLAGS "/Ycprecompiled.h")
 ENDIF ()
 
-IF (WINHTTP OR OPENSSL_FOUND OR SECURITY_FOUND)
+IF (GIT_HTTPS)
 	ADD_TEST(libgit2_clar "${libgit2_BINARY_DIR}/libgit2_clar" -ionline -xclone::local::git_style_unc_paths -xclone::local::standard_unc_paths_are_written_git_style)
 ELSE ()
 	ADD_TEST(libgit2_clar "${libgit2_BINARY_DIR}/libgit2_clar" -v -xclone::local::git_style_unc_paths -xclone::local::standard_unc_paths_are_written_git_style)
diff --git a/tests/core/stream.c b/tests/core/stream.c
index 0cbf442..2da4b2f 100644
--- a/tests/core/stream.c
+++ b/tests/core/stream.c
@@ -37,8 +37,7 @@ void test_core_stream__register_tls(void)
 	 * or when openssl support is disabled (except on OSX
 	 * with Security framework).
 	 */
-#if defined(GIT_WIN32) || \
-	(!defined(GIT_SECURE_TRANSPORT) && !defined(GIT_OPENSSL))
+#if defined(GIT_WIN32) || !defined(GIT_HTTPS)
 	cl_git_fail_with(-1, error);
 #else
 	cl_git_pass(error);