diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-11-26 04:59:21 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-11-26 08:48:00 +0100 |
commit | 45e79e37012ffec58c754000c23077ecac2da753 (patch) | |
tree | 809092609a4ca641ada8990c9008c7fb96c9cc07 /tests/t03-objwrite.c | |
parent | 9462c471435b4de74848408bebe41d770dc49a50 (diff) | |
download | libgit2-45e79e37012ffec58c754000c23077ecac2da753.tar.gz |
Rename all `_close` methods
There's no difference between `_free` and `_close` semantics: keep
everything with the same name to avoid confusions.
Diffstat (limited to 'tests/t03-objwrite.c')
-rw-r--r-- | tests/t03-objwrite.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/t03-objwrite.c b/tests/t03-objwrite.c index 6cf3834c2..1fc0cac5e 100644 --- a/tests/t03-objwrite.c +++ b/tests/t03-objwrite.c @@ -113,7 +113,7 @@ BEGIN_TEST(write0, "write loose commit object") must_pass(git_odb_read(&obj, db, &id1)); must_pass(cmp_objects(&obj->raw, &commit_obj)); - git_odb_object_close(obj); + git_odb_object_free(obj); git_odb_free(db); must_pass(remove_object_files(&commit)); END_TEST @@ -134,7 +134,7 @@ BEGIN_TEST(write1, "write loose tree object") must_pass(git_odb_read(&obj, db, &id1)); must_pass(cmp_objects(&obj->raw, &tree_obj)); - git_odb_object_close(obj); + git_odb_object_free(obj); git_odb_free(db); must_pass(remove_object_files(&tree)); END_TEST @@ -155,7 +155,7 @@ BEGIN_TEST(write2, "write loose tag object") must_pass(git_odb_read(&obj, db, &id1)); must_pass(cmp_objects(&obj->raw, &tag_obj)); - git_odb_object_close(obj); + git_odb_object_free(obj); git_odb_free(db); must_pass(remove_object_files(&tag)); END_TEST @@ -176,7 +176,7 @@ BEGIN_TEST(write3, "write zero-length object") must_pass(git_odb_read(&obj, db, &id1)); must_pass(cmp_objects(&obj->raw, &zero_obj)); - git_odb_object_close(obj); + git_odb_object_free(obj); git_odb_free(db); must_pass(remove_object_files(&zero)); END_TEST @@ -197,7 +197,7 @@ BEGIN_TEST(write4, "write one-byte long object") must_pass(git_odb_read(&obj, db, &id1)); must_pass(cmp_objects(&obj->raw, &one_obj)); - git_odb_object_close(obj); + git_odb_object_free(obj); git_odb_free(db); must_pass(remove_object_files(&one)); END_TEST @@ -218,7 +218,7 @@ BEGIN_TEST(write5, "write two-byte long object") must_pass(git_odb_read(&obj, db, &id1)); must_pass(cmp_objects(&obj->raw, &two_obj)); - git_odb_object_close(obj); + git_odb_object_free(obj); git_odb_free(db); must_pass(remove_object_files(&two)); END_TEST @@ -239,7 +239,7 @@ BEGIN_TEST(write6, "write an object which is several bytes long") must_pass(git_odb_read(&obj, db, &id1)); must_pass(cmp_objects(&obj->raw, &some_obj)); - git_odb_object_close(obj); + git_odb_object_free(obj); git_odb_free(db); must_pass(remove_object_files(&some)); END_TEST |