]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: subobj-c.sh: fix post-merge spurious failure
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 12 Jan 2013 13:41:18 +0000 (14:41 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 12 Jan 2013 13:41:18 +0000 (14:41 +0100)
* t/subobj-c.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-c.sh

index 41783e1d1d1f0f253b97145514854bd09ee8353c..0827b53ed3a27fa166afcd22de5b0552a7318424 100755 (executable)
@@ -68,12 +68,14 @@ int answer (void)
 }
 END
 
+rm -f compile # We want to check '--add-missing' installs this.
+
 $ACLOCAL
 $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
 
 $EGREP '[^/](a|b|foo)\.\$(OBJEXT)' Makefile.in && exit 1