mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 04:43:03 +00:00
* tests/regression.at, tests/torture.at, tests/calc.at: Adjust to
newest Autotest, where `.' is not in the PATH.
This commit is contained in:
@@ -272,7 +272,7 @@ m4_define([_AT_CHECK_CALC],
|
||||
[AT_DATA([[input]],
|
||||
[[$2
|
||||
]])
|
||||
AT_CHECK([calc input], 0, [], [stderr])dnl
|
||||
AT_CHECK([./calc input], 0, [], [stderr])dnl
|
||||
AT_CHECK([wc -l <stderr | sed 's/[[^0-9]]//g'], 0,
|
||||
[m4_bmatch([$1], [--debug],
|
||||
[$3], [0])
|
||||
@@ -299,7 +299,7 @@ m4_define([_AT_CHECK_CALC_ERROR],
|
||||
[[$2
|
||||
]])
|
||||
|
||||
AT_CHECK([calc input], 0, [], [stderr])
|
||||
AT_CHECK([./calc input], 0, [], [stderr])
|
||||
|
||||
|
||||
AT_CHECK([wc -l <stderr | sed 's/[[^0-9]]//g'], 0,
|
||||
|
||||
@@ -75,20 +75,20 @@ main (int argc, const char *argv[])
|
||||
AT_CHECK([bison input.y -o input.c])
|
||||
AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -o input], 0, [], [ignore])
|
||||
|
||||
AT_CHECK([input '0<0'])
|
||||
AT_CHECK([./input '0<0'])
|
||||
# FIXME: This is an actual bug, but a new one, in the sense that
|
||||
# no one has ever spotted it! The messages are *wrong*: there should
|
||||
# be nothing there, it should be expected eof.
|
||||
AT_CHECK([input '0<0<0'], [1], [],
|
||||
AT_CHECK([./input '0<0<0'], [1], [],
|
||||
[parse error, unexpected '<', expecting '<' or '>'
|
||||
])
|
||||
|
||||
AT_CHECK([input '0>0'])
|
||||
AT_CHECK([input '0>0>0'], [1], [],
|
||||
AT_CHECK([./input '0>0'])
|
||||
AT_CHECK([./input '0>0>0'], [1], [],
|
||||
[parse error, unexpected '>', expecting '<' or '>'
|
||||
])
|
||||
|
||||
AT_CHECK([input '0<0>0'], [1], [],
|
||||
AT_CHECK([./input '0<0>0'], [1], [],
|
||||
[parse error, unexpected '>', expecting '<' or '>'
|
||||
])
|
||||
|
||||
|
||||
@@ -85,12 +85,12 @@ AT_SETUP([Exploding the Stack Size with Alloca])
|
||||
AT_DATA_STACK_TORTURE
|
||||
|
||||
# Below the limit of 200.
|
||||
AT_CHECK([input 20], 0, [], [ignore])
|
||||
AT_CHECK([./input 20], 0, [], [ignore])
|
||||
# Two enlargements: 2 * 2 * 200.
|
||||
AT_CHECK([input 900], 0, [], [ignore])
|
||||
AT_CHECK([./input 900], 0, [], [ignore])
|
||||
# Fails: beyond the limit of 10,000 (which we don't reach anyway since we
|
||||
# multiply by two starting at 200 => 5120 is the last possible).
|
||||
AT_CHECK([input 10000], 1, [], [ignore])
|
||||
AT_CHECK([./input 10000], 1, [], [ignore])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
@@ -106,12 +106,12 @@ AT_SETUP([Exploding the Stack Size with Malloc])
|
||||
AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA 0]])
|
||||
|
||||
# Below the limit of 200.
|
||||
AT_CHECK([input 20], 0, [], [ignore])
|
||||
AT_CHECK([./input 20], 0, [], [ignore])
|
||||
# Two enlargements: 2 * 2 * 200.
|
||||
AT_CHECK([input 900], 0, [], [ignore])
|
||||
AT_CHECK([./input 900], 0, [], [ignore])
|
||||
# Fails: beyond the limit of 10,000 (which we don't reach anyway since we
|
||||
# multiply by two starting at 200 => 5120 is the possible).
|
||||
AT_CHECK([input 10000], 1, [], [ignore])
|
||||
AT_CHECK([./input 10000], 1, [], [ignore])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user