diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-02-07 11:53:51 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-02-07 11:53:51 +0100 |
commit | 2e6cbff86e74b6eaa9b90dc8adc205b9d940a481 (patch) | |
tree | 43b6f99dc07ff2e61f997de6081bd1ce85c72c09 /tests/index/tests.c | |
parent | 7d65d4cb7d48cd4e4686d911fe10cdec792443cf (diff) | |
download | libgit2-2e6cbff86e74b6eaa9b90dc8adc205b9d940a481.tar.gz |
tests: add missing error checks
We should always verify error codes returned by function calls in our
test suite to not accidentally miss any weird results. Coverity reported
missing checks in several locations, which this commit fixes.
Diffstat (limited to 'tests/index/tests.c')
-rw-r--r-- | tests/index/tests.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/index/tests.c b/tests/index/tests.c index 4c9deaaba..d9d8371dd 100644 --- a/tests/index/tests.c +++ b/tests/index/tests.c @@ -566,8 +566,7 @@ void test_index_tests__cannot_add_invalid_filename(void) { git_repository *repo; - p_mkdir("invalid", 0700); - + cl_must_pass(p_mkdir("invalid", 0700)); cl_git_pass(git_repository_init(&repo, "./invalid", 0)); cl_must_pass(p_mkdir("./invalid/subdir", 0777)); |