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