diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6e2cd9dda..f3becefa4 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 0cbf44230..2da4b2f9b 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);