summaryrefslogtreecommitdiff
path: root/tests/ltlibsrc.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ltlibsrc.test')
-rwxr-xr-xtests/ltlibsrc.test17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/ltlibsrc.test b/tests/ltlibsrc.test
index 78ac8e2f7..f1506267e 100755
--- a/tests/ltlibsrc.test
+++ b/tests/ltlibsrc.test
@@ -16,7 +16,7 @@
# Test to make sure a sensible default source for libraries is used.
-required='libtool gcc'
+required='cc libtool'
. ./defs || Exit 1
cat >> configure.in << 'END'
@@ -37,7 +37,10 @@ $(srcdir)/zoo_d_old2_la.c: $(srcdir)/old_la.c
END
cat > foo.c << 'END'
-int foo (void) { return 0; }
+int foo (void)
+{
+ return 0;
+}
END
cp foo.c zoo.d/bar.c
@@ -47,10 +50,10 @@ libtoolize
$ACLOCAL
$AUTOCONF
AUTOMAKE_fails -a
-grep 'Makefile.am:2:.*old_la.c' stderr
-grep 'Makefile.am:2:.*old.c' stderr
-grep 'Makefile.am:3:.*zoo_d_old2_la.c' stderr
-grep 'Makefile.am:3:.*zoo\.d/old2.c' stderr
+grep '^Makefile\.am:2:.*old_la\.c' stderr
+grep '^Makefile\.am:2:.*old\.c' stderr
+grep '^Makefile\.am:3:.*zoo_d_old2_la\.c' stderr
+grep '^Makefile\.am:3:.*zoo\.d/old2\.c' stderr
$AUTOMAKE -Wno-obsolete
@@ -66,3 +69,5 @@ test -f old.la
test -f zoo.d/old2.la
$MAKE distcheck
+
+: