Commit 2be7855727acf829de989f92a8f97a31ec3a378a

Axel Rasmussen 2015-06-02T12:45:30

caps: add test for GIT_FEATURES_NSEC

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/tests/core/features.c b/tests/core/features.c
index 5eeb05e..85cddfe 100644
--- a/tests/core/features.c
+++ b/tests/core/features.c
@@ -28,4 +28,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
 }