projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be08df
)
tests: be robust to set -e.
author
Akim Demaille
<akim@lrde.epita.fr>
Fri, 21 Dec 2012 12:23:54 +0000
(13:23 +0100)
committer
Akim Demaille
<akim@lrde.epita.fr>
Fri, 21 Dec 2012 12:24:51 +0000
(13:24 +0100)
* examples/test (run): here.
examples/test
patch
|
blob
|
history
diff --git
a/examples/test
b/examples/test
index
d320a28
..
6d2b96e
100755
(executable)
--- a/
examples/test
+++ b/
examples/test
@@
-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