Added patch to correctly assert the state of https feature

This commit is contained in:
Russell Sim 2017-04-25 23:29:38 +02:00
parent 61b8cb7621
commit 9264488d40
2 changed files with 15 additions and 0 deletions

14
debian/patches/fix_https_test.patch vendored Normal file
View File

@ -0,0 +1,14 @@
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);

View File

@ -1 +1,2 @@
disable_tests.patch
fix_https_test.patch