Skip to content

Commit

Permalink
Fix test for cleanup failure in t7300 on Windows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed Mar 4, 2008
1 parent 4d4c3e1 commit a798b2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/t7300-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a798b2c

Please sign in to comment.