mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
features: move version tests out of features test
Move the test for querying version information out of the `core::features` test and into the `core::version` test.
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
#include "clar_libgit2.h"
|
||||
|
||||
void test_core_features__0(void)
|
||||
void test_core_features__basic(void)
|
||||
{
|
||||
int major, minor, rev, caps;
|
||||
|
||||
git_libgit2_version(&major, &minor, &rev);
|
||||
cl_assert_equal_i(LIBGIT2_VERSION_MAJOR, major);
|
||||
cl_assert_equal_i(LIBGIT2_VERSION_MINOR, minor);
|
||||
cl_assert_equal_i(LIBGIT2_VERSION_REVISION, rev);
|
||||
|
||||
caps = git_libgit2_features();
|
||||
int caps = git_libgit2_features();
|
||||
|
||||
#ifdef GIT_THREADS
|
||||
cl_assert((caps & GIT_FEATURE_THREADS) != 0);
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
#include "clar_libgit2.h"
|
||||
|
||||
void test_core_version__query(void)
|
||||
{
|
||||
int major, minor, rev;
|
||||
|
||||
git_libgit2_version(&major, &minor, &rev);
|
||||
cl_assert_equal_i(LIBGIT2_VERSION_MAJOR, major);
|
||||
cl_assert_equal_i(LIBGIT2_VERSION_MINOR, minor);
|
||||
cl_assert_equal_i(LIBGIT2_VERSION_REVISION, rev);
|
||||
}
|
||||
|
||||
void test_core_version__check(void)
|
||||
{
|
||||
#if !LIBGIT2_VERSION_CHECK(1,6,3)
|
||||
|
||||
Reference in New Issue
Block a user