From 8455a2709f8c2fabf0df775a193b9ef72bb21e43 Mon Sep 17 00:00:00 2001 From: Etienne Samson Date: Sun, 1 Jul 2018 12:04:27 +0200 Subject: tests: add missing cl_git_pass to tests Reported by Coverity, CID 1393678-1393697. --- tests/diff/workdir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/diff') 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)); -- cgit v1.2.1