diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2019-01-04 13:41:50 +0100 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2019-01-04 13:41:50 +0100 |
commit | 50d4688c316e60978963ff8fabc1b95a941eba24 (patch) | |
tree | 02ca7df41d5d850813681c7590e16deb0015952d | |
parent | d9eae98b571cb1bac58904541c5bc5669e33f57f (diff) | |
download | libgit2-50d4688c316e60978963ff8fabc1b95a941eba24.tar.gz |
tests: add missing asserts
CID 1398597, 1398598
-rw-r--r-- | tests/index/crlf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/index/crlf.c b/tests/index/crlf.c index 31050f8f8..ddf01fed1 100644 --- a/tests/index/crlf.c +++ b/tests/index/crlf.c @@ -353,6 +353,7 @@ void test_index_crlf__safecrlf_true_autocrlf_input_text_auto_attr(void) cl_git_pass(git_index_add_bypath(g_index, "newfile.txt")); entry = git_index_get_bypath(g_index, "newfile.txt", 0); + cl_assert(entry); cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF)); cl_assert_equal_oid(&oid, &entry->id); @@ -373,6 +374,7 @@ void test_index_crlf__safecrlf_true_autocrlf_input_text__no_attr(void) cl_git_pass(git_index_add_bypath(g_index, "newfile.txt")); entry = git_index_get_bypath(g_index, "newfile.txt", 0); + cl_assert(entry); cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF)); cl_assert_equal_oid(&oid, &entry->id); |