Commit 6251de1d17bdc039cef61d333236b6f42e0d653d

nulltoken 2012-10-11T14:09:27

branches: cover EEXISTS propagation upon moving

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests-clar/refs/branches/move.c b/tests-clar/refs/branches/move.c
index 9ab7da4..62b6042 100644
--- a/tests-clar/refs/branches/move.c
+++ b/tests-clar/refs/branches/move.c
@@ -45,7 +45,7 @@ void test_refs_branches_move__can_move_a_local_branch_to_a_partially_colliding_n
 
 void test_refs_branches_move__can_not_move_a_branch_if_its_destination_name_collide_with_an_existing_one(void)
 {
-	cl_git_fail(git_branch_move(ref, "master", 0));
+	cl_assert_equal_i(GIT_EEXISTS, git_branch_move(ref, "master", 0));
 }
 
 void test_refs_branches_move__can_not_move_a_non_branch(void)