]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix various blunders in 'suffix-chain.test'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 9 Aug 2011 20:44:55 +0000 (22:44 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 9 Aug 2011 20:44:55 +0000 (22:44 +0200)
* tests/suffix-chain.test: Fix various blunders that were causing
this test to fail spuriously: append to `configure.in', not to
`configure.ac'; add a `;' character after the `return' statement
in an input file; use tabs, not spaces, to indent Makefile recipes;
and use more uncommon suffixes that don't trigger built-in recipes
with FreeBSD make.

ChangeLog
tests/suffix-chain.test

index 5a74f6644944ed03c5c575c70e4743fc499c12dd..797b268a208bcf17dbe3b1baa28e01a658775200 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: fix various blunders in 'suffix-chain.test'
+       * tests/suffix-chain.test: Fix various blunders that were causing
+       this test to fail spuriously: append to `configure.in', not to
+       `configure.ac'; add a `;' character after the `return' statement
+       in an input file; use tabs, not spaces, to indent Makefile recipes;
+       and use more uncommon suffixes that don't trigger built-in recipes
+       with FreeBSD make.
+
 2011-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        tests: don't let a known Solaris make bug poison too many tests
index c461cc9333098bb8c99e99258f2d1b8f6401ae98..82f0fa2ab7dd0e29a1ae727b44ca1c8221f364a4 100755 (executable)
 
 . ./defs || Exit 1
 
-cat >> configure.ac <<'END'
+cat >> configure.in <<'END'
 AC_PROG_CC
 AC_OUTPUT
 END
 
 cat > Makefile.am <<'END'
 bin_PROGRAMS = foo
-foo_SOURCES = foo.e
-.e.d:
-      (echo 'int main (void)' && echo '{' && cat $<) > $@
-.d.c:
-      (cat $< && echo '}') > $@
-CLEANFILES = foo.d foo.c
+foo_SOURCES = foo.c1
+.c1.c0:
+       (echo 'int main (void)' && echo '{' && cat $<) > $@
+.c0.c:
+       (cat $< && echo '}') > $@
+CLEANFILES = foo.c0 foo.c
 END
 
-echo 'return 0' > foo.e
+echo 'return 0;' > foo.c1
 
 $ACLOCAL
 $AUTOMAKE
@@ -48,8 +48,8 @@ $MAKE distcheck
 $MAKE clean
 
 cat >> Makefile <<'END'
-foo.c: foo.d
-foo.d: foo.e
+foo.c: foo.c0
+foo.c0: foo.c1
 END
 
 $MAKE