mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
tests: be robust to set -e.
* examples/test (run): here.
This commit is contained in:
@@ -54,9 +54,9 @@ run ()
|
||||
# Expected output.
|
||||
local out_exp=$1
|
||||
shift
|
||||
$prog "$@" - <input >out_eff
|
||||
# Effective exit status.
|
||||
local sta_eff=$?
|
||||
local sta_eff=0
|
||||
$prog "$@" - <input >out_eff || sta_eff=$?
|
||||
# Effective output.
|
||||
local out_eff=`cat out_eff`
|
||||
if test $sta_eff -eq $sta_exp; then
|
||||
|
||||
Reference in New Issue
Block a user