summaryrefslogtreecommitdiff
path: root/tests/diff
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2018-07-01 12:04:27 +0200
committerEtienne Samson <samson.etienne@gmail.com>2018-07-06 22:24:21 +0200
commit8455a2709f8c2fabf0df775a193b9ef72bb21e43 (patch)
tree4c0db000ddf7db788e50ef1611b1104387e884e8 /tests/diff
parent6ae6491e5f6033a23dfdb0fb010da74ef5413c0f (diff)
downloadlibgit2-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.c4
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));