git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4d4c3e1
)
Fix test for cleanup failure in t7300 on Windows
author
Alex Riesen
<redacted>
Mon, 3 Mar 2008 23:48:56 +0000
(
00:48
+0100)
committer
Junio C Hamano
<redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
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
@@
-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
git clone https://git.99rst.org/PROJECT