]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: minor improvements to a couple of yacc tests
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 15 Apr 2011 12:34:35 +0000 (14:34 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 15 Apr 2011 13:45:21 +0000 (15:45 +0200)
* tests/yacc-auxdir.test: Avoid running autoconf, it's not
needed.
* tests/yacc-line.test: Also check that the yacc-generated C
and header files do not contain "#line" directives referencing
`y.tab.c' or `y.tab.h'.  Add a couple of explicative comments.

ChangeLog
tests/yacc-auxdir.test
tests/yacc-line.test

index eb0b4c3be63b056bca572d83dba40ed65580e2cd..73430706a690e0409416be280b4eb87cfc5d1034 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-04-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: minor improvements to a couple of yacc tests
+       * tests/yacc-auxdir.test: Avoid running autoconf, it's not
+       needed.
+       * tests/yacc-line.test: Also check that the yacc-generated C
+       and header files do not contain "#line" directives referencing
+       `y.tab.c' or `y.tab.h'.  Add a couple of explicative comments.
+
 2011-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        tests: split yacc6.test, for better separation and coverage
index 973a33807422dd01d0a13bedae49056db5b4ec97..700fcd8cfe92f4f20eea0ff0f592aecebce4806c 100755 (executable)
@@ -48,7 +48,6 @@ bar_SOURCES = bar.y main.c
 END
 
 $ACLOCAL
-$AUTOCONF
 $AUTOMAKE -a
 test -f aux1/ylwrap
 test ! -f ylwrap
index ae6dbcfa58485a4bb5e3e6f4a5cb054a9cb16da8..8972a3d8a8d308b99a9a51874827bc0fefe6b650 100755 (executable)
@@ -98,7 +98,11 @@ for vpath in : false; do
   ls -l . sub sub/dir
   $FGREP '.y' $c_outputs
 
+  # Adjusted "#line" should not contain reference to the builddir.
   $EGREP '#.*line.*(build|\.\.).*\.y' $c_outputs && Exit 1
+  # Adjusted "#line" should not contain reference to the default
+  # output file names, e.g., `y.tab.c' and `y.tab.h'.
+  $EGREP '#.*line.*y\.tab\.' $c_outputs && Exit 1
   # Don't be excessively strict in grepping, to avoid spurious failures.
   grep '#.*line.*zardoz\.y' zardoz.c
   grep '#.*line.*quux\.y' bar-quux.c