]> git.saurik.com Git - bison.git/blobdiff - examples/test
syncline: one line is enough
[bison.git] / examples / test
index d320a2887b4e1803fa727d17d9c2415af30ac10e..6d2b96e68c0682b452681cc0fa6148174438a142 100755 (executable)
@@ -54,9 +54,9 @@ run ()
   # Expected output.
   local out_exp=$1
   shift
   # Expected output.
   local out_exp=$1
   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.
   local out_eff=`cat out_eff`
   if test $sta_eff -eq $sta_exp; then
   # Effective output.
   local out_eff=`cat out_eff`
   if test $sta_eff -eq $sta_exp; then