libgit2/debian/patches/fix_https_test.patch
2017-04-26 19:05:27 +02:00

16 lines
533 B
Diff

Update the condition around the HTTPS feature to match when it's enabled.
diff --git a/tests/core/features.c b/tests/core/features.c
index cf5e190..6d4273a 100644
--- a/tests/core/features.c
+++ b/tests/core/features.c
@@ -17,7 +17,9 @@ void test_core_features__0(void)
cl_assert((caps & GIT_FEATURE_THREADS) == 0);
#endif
+#if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT)
cl_assert((caps & GIT_FEATURE_HTTPS) != 0);
+#endif
#if defined(GIT_SSH)
cl_assert((caps & GIT_FEATURE_SSH) != 0);