diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh
index 3a43571cab78bce546ca714c8d53b76fc94c6ee2..02f67b73b762850f3c7f0faf0886bf4011f57308 100755 (executable)
--- a/t/t7300-clean.sh
+++ b/t/t7300-clean.sh
'
'
-test_expect_success 'git clean symbolic link' '
+test_expect_success SYMLINKS 'git clean symbolic link' '
mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
mkdir -p build docs &&
touch a.out src/part3.c docs/manual.txt obj.o build/lib.so &&
- ln -s docs/manual.txt src/part4.c
+ ln -s docs/manual.txt src/part4.c &&
git clean &&
test -f Makefile &&
test -f README &&
git clean &&
test -f Makefile &&
test -f README &&
'
'
-test_expect_success 'removal failure' '
+test_expect_success SANITY 'removal failure' '
mkdir foo &&
touch foo/bar &&
(exec <foo/bar &&
chmod 0 foo &&
mkdir foo &&
touch foo/bar &&
(exec <foo/bar &&
chmod 0 foo &&
- test_must_fail git clean -f -d)
-
+ test_must_fail git clean -f -d &&
+ chmod 755 foo)
'
'
-chmod 755 foo
test_expect_success 'nested git work tree' '
rm -fr foo bar &&
test_expect_success 'nested git work tree' '
rm -fr foo bar &&
(
cd repo &&
git init &&
(
cd repo &&
git init &&
- touch 1 2 3 known &&
+ touch known 1 2 3 &&
git add known &&
git clean -f -e 1 -e 2 &&
test -e 1 &&
git add known &&
git clean -f -e 1 -e 2 &&
test -e 1 &&