Commit a94002a9 by nulltoken

test: Minor fixes

parent 54be4d57
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "repo_helpers.h" #include "repo_helpers.h"
#include "posix.h" #include "posix.h"
git_repository *repo; static git_repository *repo;
void test_repo_head__initialize(void) void test_repo_head__initialize(void)
{ {
...@@ -19,9 +19,9 @@ void test_repo_head__head_detached(void) ...@@ -19,9 +19,9 @@ void test_repo_head__head_detached(void)
{ {
git_reference *ref; 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)); cl_assert_equal_i(true, git_repository_head_detached(repo));
...@@ -36,7 +36,7 @@ void test_repo_head__head_orphan(void) ...@@ -36,7 +36,7 @@ void test_repo_head__head_orphan(void)
{ {
git_reference *ref; 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); make_head_orphaned(repo, NON_EXISTING_HEAD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment