Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-08-29 16:12:13 +0400
committernulltoken <emeric.fermas@gmail.com>2013-09-07 00:21:37 +0400
commitae4a486605c258aa38a53534c99f94e66379c9ae (patch)
tree0eb0df6a5987dcad979f2ccf3c07db97aa44bd34 /tests-clar/object
parent366bd2f43dd6f74916b995340d62966fcd535b76 (diff)
blob: Slightly enforce a create_fromchunks() test
Diffstat (limited to 'tests-clar/object')
-rw-r--r--tests-clar/object/blob/fromchunks.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests-clar/object/blob/fromchunks.c b/tests-clar/object/blob/fromchunks.c
index dc57d4fbe..9fe62daef 100644
--- a/tests-clar/object/blob/fromchunks.c
+++ b/tests-clar/object/blob/fromchunks.c
@@ -41,11 +41,15 @@ void test_object_blob_fromchunks__can_create_a_blob_from_a_in_memory_chunk_provi
cl_git_pass(git_oid_fromstr(&expected_oid, "321cbdf08803c744082332332838df6bd160f8f9"));
- cl_git_fail(git_object_lookup(&blob, repo, &expected_oid, GIT_OBJ_ANY));
+ cl_git_fail_with(
+ git_object_lookup(&blob, repo, &expected_oid, GIT_OBJ_ANY),
+ GIT_ENOTFOUND);
cl_git_pass(git_blob_create_fromchunks(&oid, repo, NULL, text_chunked_source_cb, &howmany));
cl_git_pass(git_object_lookup(&blob, repo, &expected_oid, GIT_OBJ_ANY));
+ cl_assert(git_oid_cmp(&expected_oid, git_object_id(blob)) == 0);
+
git_object_free(blob);
}