]> git.proxmox.com Git - libgit2.git/blobdiff - tests/core/features.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / core / features.c
index 3ce02f4d67d52944cbc51b2da0b1ac73c564b03c..7b28cc0cb41091c3e68673da0057c5cbae26519f 100644 (file)
@@ -17,10 +17,8 @@ void test_core_features__0(void)
        cl_assert((caps & GIT_FEATURE_THREADS) == 0);
 #endif
 
-#if defined(GIT_SSL) || defined(GIT_WINHTTP)
+#ifdef GIT_HTTPS
        cl_assert((caps & GIT_FEATURE_HTTPS) != 0);
-#else
-       cl_assert((caps & GIT_FEATURE_HTTPS) == 0);
 #endif
 
 #if defined(GIT_SSH)
@@ -28,4 +26,10 @@ void test_core_features__0(void)
 #else
        cl_assert((caps & GIT_FEATURE_SSH) == 0);
 #endif
+
+#if defined(GIT_USE_NSEC)
+       cl_assert((caps & GIT_FEATURE_NSEC) != 0);
+#else
+       cl_assert((caps & GIT_FEATURE_NSEC) == 0);
+#endif
 }