work around diagnostic changes in Bison 3.6
Bison <3.6 used to complain about "$undefined", while Bison >=3.6 now write "invalid token". * tests/core/parseaut.test, tests/core/parseerr.test, tests/core/sugar.test: Adjust expected diagnostics to match Bison pre and post 3.6.
This commit is contained in:
parent
a395309f4b
commit
1752b18f14
3 changed files with 18 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2009, 2010, 2011, 2013, 2014, 2015, 2016 Laboratoire
|
||||
# Copyright (C) 2009-2016, 2020 Laboratoire
|
||||
# de Recherche et Développement de l'Epita (LRDE).
|
||||
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
|
|
@ -36,7 +36,7 @@ a - b
|
|||
{a[*9999999999]}
|
||||
EOF
|
||||
|
||||
run 1 ../ltl2text input >output
|
||||
run 1 ../ltl2text input | sed 's/[$]undefined/invalid token/g' > output
|
||||
|
||||
sed 's/$$//' >expected<<\EOF
|
||||
>>> $
|
||||
|
|
@ -53,7 +53,7 @@ ignoring trailing garbage
|
|||
|
||||
>>> /2/3/4/5 a + b /6/7/8/
|
||||
^
|
||||
syntax error, unexpected $undefined
|
||||
syntax error, unexpected invalid token
|
||||
|
||||
>>> /2/3/4/5 a + b /6/7/8/
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -61,7 +61,7 @@ ignoring trailing garbage
|
|||
|
||||
>>> a - b
|
||||
^
|
||||
syntax error, unexpected $undefined
|
||||
syntax error, unexpected invalid token
|
||||
|
||||
>>> a - b
|
||||
^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue