* tests/self-check-cleanup.tap: Also check if "ln -s" really created a
symlink to cater for MSYS falling back to an ordinary copy. Also, don't
chmod the symlinks if they were never created.
AM_TESTS_REEXEC=no; export AM_TESTS_REEXEC
-if ln -s defs foo; then
+if ln -s defs foo && test -h foo; then
have_symlinks=yes
else
have_symlinks=no
ln -s none brokenlink
fi
cd ..
-chmod 000 $dir/sub/* $dir/file $dir/symlink
+chmod 000 $dir/sub/* $dir/file
+test $have_symlinks = yes && chmod 000 $dir/symlink
chmod 000 $dir/sub $dir
command_ok_ "pre-cleanup can deal with null-perms testdir" \
$SHELL -c '. ./defs' dummy.test
ln -s none brokenlink
fi
cd ..
- chmod 000 dir/sub/* dir/file dir/symlink
+ chmod 000 dir/sub/* dir/file
+ test $have_symlinks = yes && chmod 000 dir/symlink
chmod 000 dir/sub dir
:
' dummy.test