1
0
mirror of https://github.com/git/git.git synced 2024-09-29 03:51:25 +02:00

t2026 needs procondition SANITY

When running t0026 as root 'prune directories with unreadable gitdir' fails.
Skip this test if SANITY is not set (the use of POSIXPERM is wrong here)

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Torsten Bögershausen 2015-01-27 16:38:49 +01:00 committed by Junio C Hamano
parent a83a66aca2
commit ecf2ff6ace

@ -33,7 +33,7 @@ EOF
! test -d .git/worktrees
'
test_expect_success POSIXPERM 'prune directories with unreadable gitdir' '
test_expect_success SANITY 'prune directories with unreadable gitdir' '
mkdir -p .git/worktrees/def/abc &&
: >.git/worktrees/def/def &&
: >.git/worktrees/def/gitdir &&