mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-18 05:33:26 +00:00
tests: be robust to set -e.
* examples/test (run): here.
This commit is contained in:
1 parent
7be08dfbe7
commit
a89a5b1442
1 file changed
+2
-2
+2
-2
@@ -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