diff options
| author | Miguel Arroz <750683+arroz@users.noreply.github.com> | 2022-08-30 18:08:23 -0700 |
|---|---|---|
| committer | Miguel Arroz <750683+arroz@users.noreply.github.com> | 2022-08-30 18:08:23 -0700 |
| commit | ff0df3aed91364705ec114981b9bd9e590c26f93 (patch) | |
| tree | 81414ab7908f09a2021e8d18608495b29209caf4 /tests/libgit2/worktree | |
| parent | 22f382539d78f69aa91721ad62bbd7229750a043 (diff) | |
| download | libgit2-ff0df3aed91364705ec114981b9bd9e590c26f93.tar.gz | |
#6366: When a worktree is missing, return GIT_ENOTFOUND.
Diffstat (limited to 'tests/libgit2/worktree')
| -rw-r--r-- | tests/libgit2/worktree/worktree.c | 2 |
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); } |
