summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-03-03 23:48:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-04 05:52:04 (GMT)
commita798b2c0f60ed7ae9161a4c4affb6127ff3b2575 (patch)
tree75d05b68f549d9c546238bb16e0b63ef905f2c85
parent4d4c3e1c12df7a76810f72a9012e591516cef03d (diff)
downloadgit-a798b2c0f60ed7ae9161a4c4affb6127ff3b2575.zip
git-a798b2c0f60ed7ae9161a4c4affb6127ff3b2575.tar.gz
git-a798b2c0f60ed7ae9161a4c4affb6127ff3b2575.tar.bz2
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>
-rwxr-xr-xt/t7300-clean.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 3840364..4037142 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