From: Stefano Lattarini Date: Sat, 28 Apr 2012 21:18:45 +0000 (+0200) Subject: tests: root can write on files without write perms; cater for this X-Git-Tag: v1.12.0b~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=v1.12-20-gd330368;p=thirdparty%2Fautomake.git tests: root can write on files without write perms; cater for this Fixes last part of automake bug#11369. * t/dist-readonly.sh ($required): Add 'non-root'. Signed-off-by: Stefano Lattarini --- diff --git a/t/dist-readonly.sh b/t/dist-readonly.sh index 1aa32c804..2bf2a6d6b 100755 --- a/t/dist-readonly.sh +++ b/t/dist-readonly.sh @@ -17,7 +17,9 @@ # Test that a readonly files are distributed as such, and not make # writable while being copied in the $(distdir). -required=cc +# This test expect the user to be unable to write on files lacking +# write permissions -- so it won't work if the user is 'root'. +required='non-root cc' . ./defs || Exit 1 cat >> configure.ac << 'END'