Fix test for cleanup failure in t7300 on Windows
Keep the file open to: the OS does not allow removal of open files. The saner systems just have a saner permission model and chmod 0 is enough for the test. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
4d4c3e1c12
commit
a798b2c0f6
@ -320,8 +320,9 @@ test_expect_success 'removal failure' '
|
||||
|
||||
mkdir foo &&
|
||||
touch foo/bar &&
|
||||
exec <foo/bar &&
|
||||
chmod 0 foo &&
|
||||
! git clean -f -d
|
||||
test_must_fail git clean -f -d
|
||||
|
||||
'
|
||||
chmod 755 foo
|
||||
|
Loading…
Reference in New Issue
Block a user