2009-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ testsuite: do not change the mode of installed Libtool files.
+ * tests/defs.in: Do not use `chmod -R' on the test directory, as
+ that may change or try to change the mode of installed files:
+ the test directory may contain symlinks to ltmain.sh files from
+ a Libtool installation, and Solaris `chmod -R' touches symlink
+ targets. Instead, use the cleanup strategy used in distdir.am.
+ * NEWS: Update.
+ Report by Dagobert Michelsen.
+
testsuite: do not fail in cleanup code.
* tests/defs.in: Turn off errexit in the cleanup trap, to avoid
a test failure due to a nonzero command.
`get_python_lib' function if it points outside the configured prefix,
unless the `--prefix' argument was either `/usr' or below `/System'.
+ - The testsuite does not try to change the mode of `ltmain.sh' files from
+ a Libtool installation (symlinked to test directories) any more.
+
\f
New in 1.11:
curdir=`pwd`
testSubDir=$me.dir
-chmod -R u+rwx $testSubDir > /dev/null 2>&1
-rm -rf $testSubDir > /dev/null 2>&1
+test ! -d $testSubDir || {
+ find $testSubDir -type d ! -perm -200 -exec chmod u+w {} ";"
+ rm -rf $testSubDir
+}
mkdir $testSubDir
sh_errexit_works=@sh_errexit_works@
cd "$curdir"
case $exit_status,$keep_testdirs in
0,)
- chmod -R a+rwx $testSubDir > /dev/null 2>&1
- rm -rf "$testSubDir" ;;
+ find $testSubDir -type d ! -perm -200 -exec chmod u+w {} ";"
+ rm -rf $testSubDir
+ ;;
esac
test "$signal" != 0 &&
echo "$as_me: caught signal $signal"