From: Stefano Lattarini Date: Tue, 9 Aug 2011 20:44:55 +0000 (+0200) Subject: tests: fix various blunders in 'suffix-chain.test' X-Git-Tag: ng-0.5a~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f9b3058c7bb5166dd9f269f7c334797846a67cf;p=thirdparty%2Fautomake.git 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. --- diff --git a/ChangeLog b/ChangeLog index 5a74f6644..797b268a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2011-08-09 Stefano Lattarini + + 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 tests: don't let a known Solaris make bug poison too many tests diff --git a/tests/suffix-chain.test b/tests/suffix-chain.test index c461cc933..82f0fa2ab 100755 --- a/tests/suffix-chain.test +++ b/tests/suffix-chain.test @@ -20,22 +20,22 @@ . ./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