From: Stefano Lattarini Date: Wed, 19 Oct 2011 11:42:40 +0000 (+0200) Subject: tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin X-Git-Tag: v1.11.1b~16^2~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c021e00169da8802d47e9428e282aa6ff78b656;p=thirdparty%2Fautomake.git tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin * tests/uninstall-fail.test: Be sure to really skip this test on systems that allows files to be removed from unwritable directories. Motivated by a spurious failure on Cygwin 1.5. --- diff --git a/ChangeLog b/ChangeLog index c3b041d26..44240f9c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-10-19 Stefano Lattarini + + tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin + * tests/uninstall-fail.test: Be sure to really skip this test + on systems that allows files to be removed from unwritable + directories. Motivated by a spurious failure on Cygwin 1.5. + 2011-09-28 Stefano Lattarini maintcheck: fix usage of `cd' instead of `$(am__cd)' diff --git a/tests/uninstall-fail.test b/tests/uninstall-fail.test index a3e7a7a9a..a57b6652f 100755 --- a/tests/uninstall-fail.test +++ b/tests/uninstall-fail.test @@ -24,6 +24,11 @@ set -e +mkdir d +: > d/f +chmod a-w d || skip "cannot make directories unwritable" +rm -f d/f && skip_ "can delete files from unwritable directories" + cat >> configure.in << 'END' AC_OUTPUT END @@ -46,9 +51,6 @@ mkdir $inst $inst/share : > $inst/share/foobar.txt chmod a-w $inst/share -touch $inst/share/t && skip_ "cannot make directories unwritable" -rm -f $inst/share/t - $MAKE uninstall >output 2>&1 && { cat output; Exit 1; } cat output grep "rm: .*foobar\.txt" output