tests: fix a minor spurious failure with FreeBSD make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 16 Dec 2011 00:46:14 +0000 (01:46 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 16 Dec 2011 14:55:21 +0000 (15:55 +0100)
* tests/remake-am-pr10111.test: Avoid using `#' comments in
makefile recipes, as these have been confusing FreeBSD make.
The failure was masked by the fact that this test is currently
expected to fail.

Suggested by a report from Bruno Haible.

ChangeLog
tests/remake-am-pr10111.test

index f61872d..6bc7daa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-12-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
+       tests: fix a minor spurious failure with FreeBSD make
+       * tests/remake-am-pr10111.test: Avoid using `#' comments in
+       makefile recipes, as these have been confusing FreeBSD make.
+       The failure was masked by the fact that this test is currently
+       expected to fail.
+       Suggested by a report from Bruno Haible.
+
+2011-12-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
        tests: make two test scripts executable
        * tests/remake-am-pr10111.test: Make executable.
        * tests/remake-m4-pr10111.test: Likewise.
index 6f622f8..888c9dd 100755 (executable)
@@ -35,9 +35,9 @@ END
 cat > Makefile.am <<'END'
 include $(srcdir)/foobar.am
 $(srcdir)/foobar.am:
-## Creative quoting to avoid spurious matches in the grepping
+## Creative quoting is to avoid spurious matches in the grepping
 ## of Makefile.in, later.
-       echo '#' 'foobar' 'was 'here' '#' > $@
+       echo "mu =" foobar "was here =" > $@
 END
 
 $ACLOCAL
@@ -58,7 +58,7 @@ cd build
 # included by configure.in works also in VPATH builds.
 rm -f ../foobar.am
 $MAKE
-grep '# foobar was here #' ../Makefile.in
+grep '= foobar was here =' ../Makefile.in
 $MAKE distcheck
 
 :