summaryrefslogtreecommitdiff
path: root/tests/pack/indexer.c
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-07-02 15:29:25 +0200
committerVicent Marti <vicent@github.com>2014-07-02 15:29:25 +0200
commitc1bf2942fcdc90883987c37a782b599d8969e747 (patch)
tree01b176117d561a3f3f2adf4c1147f7ffb0be8050 /tests/pack/indexer.c
parent4df4ebd7c772a6dca577fd2968d7f81e72e4cff2 (diff)
parent9879fee184adaace842ed4bb055fd2942d975591 (diff)
downloadlibgit2-c1bf2942fcdc90883987c37a782b599d8969e747.tar.gz
Merge pull request #2455 from ethomson/equal_oid
Introduce `cl_assert_equal_oid`
Diffstat (limited to 'tests/pack/indexer.c')
-rw-r--r--tests/pack/indexer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pack/indexer.c b/tests/pack/indexer.c
index 084f8e666..49a106d98 100644
--- a/tests/pack/indexer.c
+++ b/tests/pack/indexer.c
@@ -74,7 +74,7 @@ void test_pack_indexer__fix_thin(void)
/* Store the missing base into your ODB so the indexer can fix the pack */
cl_git_pass(git_odb_write(&id, odb, base_obj, base_obj_len, GIT_OBJ_BLOB));
git_oid_fromstr(&should_id, "e68fe8129b546b101aee9510c5328e7f21ca1d18");
- cl_assert(!git_oid_cmp(&id, &should_id));
+ cl_assert_equal_oid(&should_id, &id);
cl_git_pass(git_indexer_new(&idx, ".", 0, odb, NULL, NULL));
cl_git_pass(git_indexer_append(idx, thin_pack, thin_pack_len, &stats));
@@ -86,7 +86,7 @@ void test_pack_indexer__fix_thin(void)
cl_assert_equal_i(stats.local_objects, 1);
git_oid_fromstr(&should_id, "11f0f69b334728fdd8bc86b80499f22f29d85b15");
- cl_assert(!git_oid_cmp(git_indexer_hash(idx), &should_id));
+ cl_assert_equal_oid(&should_id, git_indexer_hash(idx));
git_indexer_free(idx);
git_odb_free(odb);