From 9264488d40177b36489e93efd93b5cb5035c931c Mon Sep 17 00:00:00 2001 From: Russell Sim Date: Tue, 25 Apr 2017 23:29:38 +0200 Subject: [PATCH] Added patch to correctly assert the state of https feature --- debian/patches/fix_https_test.patch | 14 ++++++++++++++ debian/patches/series | 1 + 2 files changed, 15 insertions(+) create mode 100644 debian/patches/fix_https_test.patch diff --git a/debian/patches/fix_https_test.patch b/debian/patches/fix_https_test.patch new file mode 100644 index 000000000..5007b6dc6 --- /dev/null +++ b/debian/patches/fix_https_test.patch @@ -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); diff --git a/debian/patches/series b/debian/patches/series index cdacb994b..2d8707844 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ disable_tests.patch +fix_https_test.patch \ No newline at end of file