From a89a5b1442d6e9fecb306725a2f5426d9f3fbf90 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 21 Dec 2012 13:23:54 +0100 Subject: [PATCH] tests: be robust to set -e. * examples/test (run): here. --- examples/test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/test b/examples/test index d320a28..6d2b96e 100755 --- a/examples/test +++ b/examples/test @@ -54,9 +54,9 @@ run () # Expected output. local out_exp=$1 shift - $prog "$@" - out_eff # Effective exit status. - local sta_eff=$? + local sta_eff=0 + $prog "$@" - out_eff || sta_eff=$? # Effective output. local out_eff=`cat out_eff` if test $sta_eff -eq $sta_exp; then -- 2.7.4