diff options
author | Yuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com> | 2022-06-27 15:49:54 +0100 |
---|---|---|
committer | Yuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com> | 2022-06-27 15:49:54 +0100 |
commit | 6bab22f4d3c659a7d4282080ac4d662066411f55 (patch) | |
tree | 38c0d82386d3cb95d1e05c631d42c78f3eed75ab /tests | |
parent | 562246b415edf6abe9988d44e9044a8504989868 (diff) | |
download | libgit2-6bab22f4d3c659a7d4282080ac4d662066411f55.tar.gz |
move feature flag tests to tests/grafts/shallow.c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/grafts/shallow.c | 10 | ||||
-rw-r--r-- | tests/shallow/feature_flag.c | 11 |
2 files changed, 10 insertions, 11 deletions
diff --git a/tests/grafts/shallow.c b/tests/grafts/shallow.c index 8fe3421f2..ac1d686af 100644 --- a/tests/grafts/shallow.c +++ b/tests/grafts/shallow.c @@ -7,6 +7,16 @@ static git_repository *g_repo; static git_oid g_shallow_oid; +void test_grafts_shallow__set_feature_flag(void) +{ + cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1)); +} + +void test_grafts_shallow__unset_feature_flag(void) +{ + cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0)); +} + void test_grafts_shallow__initialize(void) { cl_git_pass(git_oid_fromstr(&g_shallow_oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644")); diff --git a/tests/shallow/feature_flag.c b/tests/shallow/feature_flag.c deleted file mode 100644 index 25d283a44..000000000 --- a/tests/shallow/feature_flag.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "clar_libgit2.h" - -void test_shallow_feature_flag__set_feature_flag(void) -{ - cl_must_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1)); -} - -void test_shallow_feature_flag__unset_feature_flag(void) -{ - cl_must_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0)); -} |