diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2008-03-04 00:48:56 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-03 21:52:04 -0800 |
commit | a798b2c0f60ed7ae9161a4c4affb6127ff3b2575 (patch) | |
tree | 75d05b68f549d9c546238bb16e0b63ef905f2c85 /t | |
parent | 4d4c3e1c12df7a76810f72a9012e591516cef03d (diff) | |
download | git-a798b2c0f60ed7ae9161a4c4affb6127ff3b2575.tar.gz git-a798b2c0f60ed7ae9161a4c4affb6127ff3b2575.tar.xz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7300-clean.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 38403643a..403714292 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -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 |