diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-07-01 12:04:27 +0200 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2018-07-06 22:24:21 +0200 |
commit | 8455a2709f8c2fabf0df775a193b9ef72bb21e43 (patch) | |
tree | 4c0db000ddf7db788e50ef1611b1104387e884e8 /tests/diff | |
parent | 6ae6491e5f6033a23dfdb0fb010da74ef5413c0f (diff) | |
download | libgit2-8455a2709f8c2fabf0df775a193b9ef72bb21e43.tar.gz |
tests: add missing cl_git_pass to tests
Reported by Coverity, CID 1393678-1393697.
Diffstat (limited to 'tests/diff')
-rw-r--r-- | tests/diff/workdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/diff/workdir.c b/tests/diff/workdir.c index d8270621f..dab6147b5 100644 --- a/tests/diff/workdir.c +++ b/tests/diff/workdir.c @@ -1910,7 +1910,7 @@ void test_diff_workdir__binary_detection(void) cl_git_write2file( b.ptr, data[i].ptr, data[i].size, O_WRONLY|O_TRUNC, 0664); } - git_index_write(idx); + cl_git_pass(git_index_write(idx)); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, NULL)); @@ -1938,7 +1938,7 @@ void test_diff_workdir__binary_detection(void) cl_git_write2file(b.ptr, "baseline\n", 9, O_WRONLY|O_TRUNC, 0664); } - git_index_write(idx); + cl_git_pass(git_index_write(idx)); cl_git_pass(git_diff_index_to_workdir(&diff, g_repo, NULL, NULL)); |