From 303b4c689477c3a3da1de6351c02db0368fe6625 Mon Sep 17 00:00:00 2001 From: Reginald McLean Date: Sat, 7 Nov 2020 16:30:44 -0500 Subject: worktree: change test to invalidate worktree via filesystem --- tests/worktree/worktree.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/worktree/worktree.c') diff --git a/tests/worktree/worktree.c b/tests/worktree/worktree.c index c3abf0030..88bcaa97e 100644 --- a/tests/worktree/worktree.c +++ b/tests/worktree/worktree.c @@ -616,11 +616,8 @@ void test_worktree_worktree__validate_invalid_worktreedir(void) git_worktree *wt; cl_git_pass(git_worktree_lookup(&wt, fixture.repo, "testrepo-worktree")); - git__free(wt->worktree_path); - wt->worktree_path = "/path/to/invalid/worktreedir"; - + p_rename("testrepo-worktree", "testrepo-worktree-tmp"); cl_git_fail(git_worktree_validate(wt)); - wt->worktree_path = NULL; git_worktree_free(wt); } -- cgit v1.2.1