summaryrefslogtreecommitdiff
path: root/tests-clar/index/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/index/tests.c')
-rw-r--r--tests-clar/index/tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/index/tests.c b/tests-clar/index/tests.c
index 3d01b7cfb..6420163f5 100644
--- a/tests-clar/index/tests.c
+++ b/tests-clar/index/tests.c
@@ -50,10 +50,10 @@ static void files_are_equal(const char *a, const char *b)
git_buf buf_b = GIT_BUF_INIT;
int pass;
- if (git_futils_readbuffer(&buf_a, a) < GIT_SUCCESS)
+ if (git_futils_readbuffer(&buf_a, a) < 0)
cl_assert(0);
- if (git_futils_readbuffer(&buf_b, b) < GIT_SUCCESS) {
+ if (git_futils_readbuffer(&buf_b, b) < 0) {
git_buf_free(&buf_a);
cl_assert(0);
}
@@ -153,7 +153,7 @@ void test_index_tests__find_in_empty(void)
for (i = 0; i < ARRAY_SIZE(test_entries); ++i) {
int idx = git_index_find(index, test_entries[i].path);
- cl_assert(idx == GIT_ENOTFOUND);
+ cl_assert(idx == GIT_NOTFOUND);
}
git_index_free(index);