summaryrefslogtreecommitdiff
path: root/tests/output.at
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-02-19 18:16:02 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-02-21 06:46:07 +0100
commitbd55d43333e047c1909e6a22883f2cb74acb036c (patch)
treee6d5e5d87a552e2137ab63bbf2b7f69de26a8131 /tests/output.at
parent98020cedf779dfab193ddad949cd3d38b3ed002e (diff)
downloadbison-bd55d43333e047c1909e6a22883f2cb74acb036c.tar.gz
graph: prefer *.gv to *.dot
Reported by Hans Ã…berg. https://lists.gnu.org/archive/html/help-bison/2019-02/msg00064.html * src/files.c (spec_graph_file): Use `*.gv` when 3.4 or better, otherwise `*.dot`. * src/parse-gram.y (handle_require): Pretend we are already 3.4. * doc/bison.texi: Adjust. * tests/local.at, tests/output.at: Exercise this.
Diffstat (limited to 'tests/output.at')
-rw-r--r--tests/output.at2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/output.at b/tests/output.at
index 31b41694..11ef8731 100644
--- a/tests/output.at
+++ b/tests/output.at
@@ -76,6 +76,8 @@ AT_CHECK_OUTPUT([foo.y], [], [-dv -o foo.tab.c],
AT_CHECK_OUTPUT([foo.y], [], [-dv -g --xml -y],
[y.dot y.output y.tab.c y.tab.h y.xml])
+AT_CHECK_OUTPUT([foo.y], [%require "3.4"], [-dv -g --xml -y],
+ [y.gv y.output y.tab.c y.tab.h y.xml])
# With '-o y.tab.c', we expect 'y.output' etc. (for compatibility with Yacc).
AT_CHECK_OUTPUT([foo.y], [], [-dv -g --xml -o y.tab.c],
[y.dot y.output y.tab.c y.tab.h y.xml])