X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b611359d905d5f349015b3561781838580853fd8..fc51acddb45242904128a7637dc2ab9216ba0662:/examples/test
diff --git a/examples/test b/examples/test
index d320a288..78263a88 100755
--- a/examples/test
+++ b/examples/test
@@ -1,6 +1,6 @@
#! /bin/sh
-# Copyright (C) 2005-2012 Free Software Foundation, Inc.
+# Copyright (C) 2005-2014 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -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