Subject: Re: bug#11369: 2 test failures in Automake-1.12

From: Stefano Lattarini <[email-masked]>
Date: Sat, 28 Apr 2012 23:20:30 +0200

severity 11369 minor
tags 11369 - moreinfo
tags 11369 + patch
close 11369
thanks

On 04/28/2012 10:27 PM, Matt Burgess wrote:
>
> Due to our particular build environment, automake is built and tested
> as the root user in a chroot environment.
> 
Ah, this explain it all.  So this error was due to another testsuite weakness,
that is solved by the attached patch.  All the two failures explained ad fixed,
I'm closing this bug report.

Thanks again for your help,
  Stefano
>From d3303684e6f05d550b4bec305b6a8650bb0ebfb9 Mon Sep 17 00:00:00 2001
Message-Id: <d3303684e[email-masked]>
From: Stefano Lattarini <[email-masked]>
Date: Sat, 28 Apr 2012 23:18:45 +0200
Subject: [PATCH] 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 <[email-masked]>
---
 t/dist-readonly.sh |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/t/dist-readonly.sh b/t/dist-readonly.sh
index 1aa32c8..2bf2a6d 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'
-- 
1.7.9.5