X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5a9c6b89d0cd97f514383bc555a2c14f59bd9c3b..7d6bad195977b0204fc8406cac57cf5a4f1c769b:/examples/test diff --git a/examples/test b/examples/test index 6da1667b..f77b8f41 100755 --- a/examples/test +++ b/examples/test @@ -1,6 +1,6 @@ #! /bin/sh -set -x -# Copyright (C) 2005-2012 Free Software Foundation, Inc. + +# Copyright (C) 2005-2013 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 @@ -74,6 +74,9 @@ run () } # We have cd'd one level deeper. -. "../$1" +case $1 in + /*) . "$1";; + *) . "../$1";; +esac $exit