automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {master} tests: fix various blunders in 'suffix-chain.test'


From: Stefano Lattarini
Subject: [FYI] {master} tests: fix various blunders in 'suffix-chain.test'
Date: Tue, 9 Aug 2011 22:46:12 +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               |   10 ++++++++++
 tests/suffix-chain.test |   20 ++++++++++----------
 2 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5a74f66..797b268 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2011-08-09  Stefano Lattarini  <address@hidden>
 
+       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  <address@hidden>
+
        tests: don't let a known Solaris make bug poison too many tests
        See automake bug#7670 and bug#7824.
        * tests/defs (make_can_chain_suffix_rules): New function, tell
diff --git a/tests/suffix-chain.test b/tests/suffix-chain.test
index c461cc9..82f0fa2 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
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]