summaryrefslogtreecommitdiff
path: root/tests/libgit2
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-09-19 10:59:58 +0100
committerGitHub <noreply@github.com>2022-09-19 10:59:58 +0100
commitd78fad1519fa8ea85d6a461ac4a394c834da2624 (patch)
treef4ea7ea51a5930b5989bb65d3299d6d9da02fcaf /tests/libgit2
parent44b824854a0cf534202fa6cb8ba1c71225c32a63 (diff)
parentff0df3aed91364705ec114981b9bd9e590c26f93 (diff)
downloadlibgit2-d78fad1519fa8ea85d6a461ac4a394c834da2624.tar.gz
Merge pull request #6395 from arroz/fix/nonexistent-worktree-lookup-error-code
#6366: When a worktree is missing, return GIT_ENOTFOUND.
Diffstat (limited to 'tests/libgit2')
-rw-r--r--tests/libgit2/worktree/worktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libgit2/worktree/worktree.c b/tests/libgit2/worktree/worktree.c
index 66273d1cb..9fd27f49c 100644
--- a/tests/libgit2/worktree/worktree.c
+++ b/tests/libgit2/worktree/worktree.c
@@ -120,7 +120,7 @@ void test_worktree_worktree__lookup_nonexistent_worktree(void)
{
git_worktree *wt;
- cl_git_fail(git_worktree_lookup(&wt, fixture.repo, "nonexistent"));
+ cl_git_fail_with(GIT_ENOTFOUND, git_worktree_lookup(&wt, fixture.repo, "nonexistent"));
cl_assert_equal_p(wt, NULL);
}