summaryrefslogtreecommitdiff
path: root/t/t7300-clean.sh
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2015-08-11 20:29:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-11 22:17:07 (GMT)
commitfbf2fecf505e44c4f45f4b6d29a37011989ac071 (patch)
tree9ba9cc4eb9044d4ba82817eb509a52b977f2c95e /t/t7300-clean.sh
parent38ae8784074852c8e7b651f4f6e44e07466da7e1 (diff)
downloadgit-fbf2fecf505e44c4f45f4b6d29a37011989ac071.zip
git-fbf2fecf505e44c4f45f4b6d29a37011989ac071.tar.gz
git-fbf2fecf505e44c4f45f4b6d29a37011989ac071.tar.bz2
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>
Diffstat (limited to 't/t7300-clean.sh')
-rwxr-xr-xt/t7300-clean.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 32e96da..27557d6 100755
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
@@ -499,7 +499,7 @@ test_expect_success 'should not clean submodules' '
test_path_is_missing to_clean
'
-test_expect_success 'should avoid cleaning possible submodules' '
+test_expect_success POSIXPERM 'should avoid cleaning possible submodules' '
rm -fr to_clean possible_sub1 &&
mkdir to_clean possible_sub1 &&
test_when_finished "rm -rf possible_sub*" &&