summaryrefslogtreecommitdiff
path: root/tests-clar/core
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/core')
-rw-r--r--tests-clar/core/path.c4
-rw-r--r--tests-clar/core/vector.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/core/path.c b/tests-clar/core/path.c
index af8bf8127..d826612ac 100644
--- a/tests-clar/core/path.c
+++ b/tests-clar/core/path.c
@@ -413,8 +413,8 @@ void test_core_path__13_cannot_prettify_a_non_existing_file(void)
git_buf p = GIT_BUF_INIT;
cl_must_pass(git_path_exists(NON_EXISTING_FILEPATH) == false);
- cl_assert_equal_i(GIT_NOTFOUND, git_path_prettify(&p, NON_EXISTING_FILEPATH, NULL));
- cl_assert_equal_i(GIT_NOTFOUND, git_path_prettify(&p, NON_EXISTING_FILEPATH "/so-do-i", NULL));
+ cl_assert_equal_i(GIT_ENOTFOUND, git_path_prettify(&p, NON_EXISTING_FILEPATH, NULL));
+ cl_assert_equal_i(GIT_ENOTFOUND, git_path_prettify(&p, NON_EXISTING_FILEPATH "/so-do-i", NULL));
git_buf_free(&p);
}
diff --git a/tests-clar/core/vector.c b/tests-clar/core/vector.c
index 5b47dded2..ef3d6c36d 100644
--- a/tests-clar/core/vector.c
+++ b/tests-clar/core/vector.c
@@ -143,7 +143,7 @@ static int merge_structs(void **old_raw, void *new)
((my_struct *)old)->count += 1;
git__free(new);
_struct_count--;
- return GIT_EXISTS;
+ return GIT_EEXISTS;
}
static my_struct *alloc_struct(int value)