summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d4c3e1)
raw | patch | inline | side by side (parent: 4d4c3e1)
author | Alex Riesen <raa.lkml@gmail.com> | |
Mon, 3 Mar 2008 23:48:56 +0000 (00:48 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 4 Mar 2008 05:52:04 +0000 (21:52 -0800) |
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>
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>
t/t7300-clean.sh | patch | blob | history |
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 38403643a6271ae4e6bb5a9c7d768ae4b50df34d..4037142927ab1b255da90d8f08207841b4e4c993 100755 (executable)
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
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