]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: root can write on files without write perms; cater for this
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 28 Apr 2012 21:18:45 +0000 (23:18 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 28 Apr 2012 21:19:04 +0000 (23:19 +0200)
Fixes last part of automake bug#11369.

* t/dist-readonly.sh ($required): Add 'non-root'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/dist-readonly.sh

index 1aa32c804cc9883e20315250301a51c63ed7f4ce..2bf2a6d6b555bd46e496c32eddcd93c2c854035f 100755 (executable)
@@ -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'