From: Stefano Lattarini Date: Fri, 25 May 2012 08:29:02 +0000 (+0200) Subject: [ng] tests: fix spurious failure under "make distcheck" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa1b4e1c89d950830b12b5995d0e0e3160e8c87e;p=thirdparty%2Fautomake.git [ng] tests: fix spurious failure under "make distcheck" * t/verbatim.sh: This test copied in files from the directory of Automake internal '.am' fragments, and then overwrote one of them with 'cat >'. But that is bound to fail under a "make distcheck", because in that case all of the source directory (in particular the '.am' files in it) are made read only. This can be fixed by unlinking the file we want to overwrite before actually writing to it. Signed-off-by: Stefano Lattarini --- diff --git a/t/verbatim.sh b/t/verbatim.sh index da21c8cb9..f0f6b7469 100755 --- a/t/verbatim.sh +++ b/t/verbatim.sh @@ -45,6 +45,10 @@ cp "$am_amdir"/*.am ./am echo pkgdata_DATA = configure.ac > Makefile.am +# The '.am' file are read-only when this test is run under +# "make distcheck", so we need to unlink any of them we want +# to overwrite. +rm -f am/data.am cat > am/data.am << 'END' include 0.am include 1.am