summaryrefslogtreecommitdiff
path: root/tests-clar/status
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/status')
-rw-r--r--tests-clar/status/submodules.c4
-rw-r--r--tests-clar/status/worktree.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests-clar/status/submodules.c b/tests-clar/status/submodules.c
index 63a44dc0e..9423e8490 100644
--- a/tests-clar/status/submodules.c
+++ b/tests-clar/status/submodules.c
@@ -34,9 +34,9 @@ void test_status_submodules__api(void)
{
git_submodule *sm;
- cl_assert(git_submodule_lookup(NULL, g_repo, "nonexistent") == GIT_NOTFOUND);
+ cl_assert(git_submodule_lookup(NULL, g_repo, "nonexistent") == GIT_ENOTFOUND);
- cl_assert(git_submodule_lookup(NULL, g_repo, "modified") == GIT_NOTFOUND);
+ cl_assert(git_submodule_lookup(NULL, g_repo, "modified") == GIT_ENOTFOUND);
cl_git_pass(git_submodule_lookup(&sm, g_repo, "testrepo"));
cl_assert(sm != NULL);
diff --git a/tests-clar/status/worktree.c b/tests-clar/status/worktree.c
index d839e8462..6cc6259b8 100644
--- a/tests-clar/status/worktree.c
+++ b/tests-clar/status/worktree.c
@@ -199,7 +199,7 @@ void test_status_worktree__single_nonexistent_file(void)
error = git_status_file(&status_flags, repo, "nonexistent");
cl_git_fail(error);
- cl_assert(error == GIT_NOTFOUND);
+ cl_assert(error == GIT_ENOTFOUND);
}
/* this test is equivalent to t18-status.c:singlestatus2 */
@@ -211,7 +211,7 @@ void test_status_worktree__single_nonexistent_file_empty_repo(void)
error = git_status_file(&status_flags, repo, "nonexistent");
cl_git_fail(error);
- cl_assert(error == GIT_NOTFOUND);
+ cl_assert(error == GIT_ENOTFOUND);
}
/* this test is equivalent to t18-status.c:singlestatus3 */
@@ -235,7 +235,7 @@ void test_status_worktree__single_folder(void)
error = git_status_file(&status_flags, repo, "subdir");
cl_git_fail(error);
- cl_assert(error != GIT_NOTFOUND);
+ cl_assert(error != GIT_ENOTFOUND);
}
@@ -416,7 +416,7 @@ void test_status_worktree__cannot_retrieve_the_status_of_a_bare_repository(void)
error = git_status_file(&status, repo, "dummy");
cl_git_fail(error);
- cl_assert(error != GIT_NOTFOUND);
+ cl_assert(error != GIT_ENOTFOUND);
git_repository_free(repo);
}