summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-11-22 18:50:50 +0100
committernulltoken <emeric.fermas@gmail.com>2012-11-22 18:50:50 +0100
commita94002a983fb02eafb09788e003a545a2d23ab76 (patch)
treec444e7e4f7c2b517e671be2b1200e9c3eab41925
parent54be4d57ed3cfbfb8c970f04422f840bcb731ddd (diff)
downloadlibgit2-a94002a983fb02eafb09788e003a545a2d23ab76.tar.gz
test: Minor fixes
-rw-r--r--tests-clar/repo/head.c8
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);