mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
tests: save/restore Autotest special files when checking XML support.
Currently the test 248, "parse-gram.y: LALR = IELR", fails BISON_TEST_XML is set. * tests/local.at (AT_BISON_CHECK_XML): Belt: Save/restore files. * tests/regression.at (parse-gram.y: LALR = IELR): Suspenders: Don't rely on expout. Each one of these changes suffices.
This commit is contained in:
@@ -1266,10 +1266,12 @@ AT_SETUP([[parse-gram.y: LALR = IELR]])
|
||||
# have the same name.
|
||||
[cp $abs_top_srcdir/src/parse-gram.y input.y]
|
||||
AT_BISON_CHECK([[-o input.c -Dlr.type=lalr input.y]])
|
||||
[mv input.c expout]
|
||||
[mv input.c lalr.c]
|
||||
AT_CAPTURE_FILE([lalr.c])
|
||||
AT_BISON_CHECK([[-o input.c -Dlr.type=ielr input.y]])
|
||||
[mv input.c ielr.c]
|
||||
AT_CHECK([[cat ielr.c]], [[0]], [[expout]])
|
||||
AT_CAPTURE_FILE([ielr.c])
|
||||
AT_CHECK([[diff lalr.c ielr.c]], [[0]])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user