t7300-clean: require POSIXPERM for chmod 0 test
A test case introduced by 91479b9c (t7300: add tests to document behavior of clean and nested git) uses 'chmod 0' to verify that a subdirectory that has an unreadable .git file is not removed. This can work only when the system pays attention to the permissions set with 'chmod'. Therefore, set the POSIXPERM prerequisite on the test case. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Aug 11, 2015 at 22:29 UTC
fbf2fecf505e44c4f45f4b6d29a37011989ac071
1 file changed
+1
-1
t/t7300-clean.sh
+1
-1
@@ -499,7 +499,7 @@ test_expect_success 'should not clean submodules' '
499
test_path_is_missing to_clean
500
'
501
502
-test_expect_success 'should avoid cleaning possible submodules' '
502
+test_expect_success POSIXPERM 'should avoid cleaning possible submodules' '
503
rm -fr to_clean possible_sub1 &&
504
mkdir to_clean possible_sub1 &&
505
test_when_finished "rm -rf possible_sub*" &&