diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-04-04 00:30:07 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-04-22 18:50:50 +0400 |
commit | 8842c75f172ed94be4ad11521d4083e97d740785 (patch) | |
tree | e864a71de4ec4745a57057541f5e5366a53c84cc /tests-clar/object | |
parent | c4e91d4500bdd357fbf7378bc10648a482513fa6 (diff) |
What has science done.
Diffstat (limited to 'tests-clar/object')
-rw-r--r-- | tests-clar/object/raw/write.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests-clar/object/raw/write.c b/tests-clar/object/raw/write.c index 60aa31f6a..9709c0302 100644 --- a/tests-clar/object/raw/write.c +++ b/tests-clar/object/raw/write.c @@ -63,6 +63,7 @@ void test_body(object_data *d, git_rawobj *o) git_odb *db; git_oid id1, id2; git_odb_object *obj; + git_rawobj tmp; make_odb_dir(); cl_git_pass(git_odb_open(&db, odb_dir)); @@ -73,7 +74,12 @@ void test_body(object_data *d, git_rawobj *o) check_object_files(d); cl_git_pass(git_odb_read(&obj, db, &id1)); - cmp_objects(&obj->raw, o); + + tmp.data = obj->buffer; + tmp.len = obj->cached.size; + tmp.type = obj->cached.type; + + cmp_objects(&tmp, o); git_odb_object_free(obj); git_odb_free(db); |