diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-11-22 18:50:50 +0100 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-11-22 18:50:50 +0100 |
commit | a94002a983fb02eafb09788e003a545a2d23ab76 (patch) | |
tree | c444e7e4f7c2b517e671be2b1200e9c3eab41925 | |
parent | 54be4d57ed3cfbfb8c970f04422f840bcb731ddd (diff) | |
download | libgit2-a94002a983fb02eafb09788e003a545a2d23ab76.tar.gz |
test: Minor fixes
-rw-r--r-- | tests-clar/repo/head.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/repo/head.c b/tests-clar/repo/head.c index 551e834f2..1c1e905c4 100644 --- a/tests-clar/repo/head.c +++ b/tests-clar/repo/head.c @@ -3,7 +3,7 @@ #include "repo_helpers.h" #include "posix.h" -git_repository *repo; +static git_repository *repo; void test_repo_head__initialize(void) { @@ -19,9 +19,9 @@ void test_repo_head__head_detached(void) { git_reference *ref; - cl_assert(git_repository_head_detached(repo) == 0); + cl_git_pass(git_repository_head_detached(repo)); - git_repository_detach_head(repo); + cl_git_pass(git_repository_detach_head(repo)); cl_assert_equal_i(true, git_repository_head_detached(repo)); @@ -36,7 +36,7 @@ void test_repo_head__head_orphan(void) { git_reference *ref; - cl_assert(git_repository_head_orphan(repo) == 0); + cl_git_pass(git_repository_head_detached(repo)); make_head_orphaned(repo, NON_EXISTING_HEAD); |