]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: subobj-libtool.sh: fix post-merge spurious failure
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 12 Jan 2013 13:46:51 +0000 (14:46 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 12 Jan 2013 13:46:51 +0000 (14:46 +0100)
* t/subobj-libtool.sh: Remove the 'compile' script automatically brought
in by 'test-init.sh', so that we can ensure "automake --add-missing"
correctly installs it.  While at it, make grepping of automake output
slightly stricter.

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

index ab842342a48eff5bcfb33e85f35c8947a84150f7..f0284d5681cd40ba94e34dc7d995758c4094fa19 100755 (executable)
@@ -55,11 +55,11 @@ echo 'int three (void) { return 3; }' > sub/subsub/3.c
 libtoolize
 $ACLOCAL
 
+# Make sure compile is installed, and that Automake says so.
+rm -f compile
 $AUTOMAKE --add-missing 2>stderr || { cat stderr >&2; exit 1; }
 cat stderr >&2
-
-# Make sure compile is installed, and that Automake says so.
-grep 'install.*compile' stderr
+grep '^configure\.ac:4:.*install.*compile' stderr
 test -f compile
 
 grep '[^/][123]\.lo' Makefile.in && exit 1