summaryrefslogtreecommitdiff
path: root/tests/core/features.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-04-25 10:14:37 +0200
committerPatrick Steinhardt <ps@pks.im>2017-04-25 10:15:59 +0200
commit417319cc86e1bc7a89f6ab00443448a4d034c3bc (patch)
tree8222e2a3421c7551a5285355b3eff93b9e82cc30 /tests/core/features.c
parenta4de1ae38980ea52d675d52d60d19f1bec61c127 (diff)
downloadlibgit2-417319cc86e1bc7a89f6ab00443448a4d034c3bc.tar.gz
tests: core::features: only check for HTTPS if it is supported
Diffstat (limited to 'tests/core/features.c')
-rw-r--r--tests/core/features.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/core/features.c b/tests/core/features.c
index cf5e19063..7b28cc0cb 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
+#ifdef GIT_HTTPS
cl_assert((caps & GIT_FEATURE_HTTPS) != 0);
+#endif
#if defined(GIT_SSH)
cl_assert((caps & GIT_FEATURE_SSH) != 0);