]> 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 e6d0e0f5153bb8d282eac8de1afa516139a522b4..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) || defined(GIT_SECURE_TRANSPORT)
+#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
 }