@matheusbsbs / matheus-bagliano / commits / a798b2c0f6
Fork 0

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>

Alex Riesen committed Mar 4, 2008 at 00:48 UTC a798b2c0f60ed7ae9161a4c4affb6127ff3b2575
1 file changed +2 -1
t/t7300-clean.sh
+2 -1
@@ -320,8 +320,9 @@ test_expect_success 'removal failure' '
320
321 mkdir foo &&
322 touch foo/bar &&
323 + exec <foo/bar &&
324 chmod 0 foo &&
324 - ! git clean -f -d
325 + test_must_fail git clean -f -d
326
327 '
328 chmod 755 foo