X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fbctest;h=bdb3218f7acaa2cac934c96c62a402ba5677636c;hp=7dde7816531186cb3638d7472d352bac1deb8879;hb=4c02cf8ecc4b4cedeb6b6c11185f5d3e49c3cd4a;hpb=5f1fddbbe787e594de2efe746ac00143da655fcc diff --git a/test/bctest b/test/bctest index 7dde781653..bdb3218f7a 100755 --- a/test/bctest +++ b/test/bctest @@ -12,13 +12,13 @@ IFS=: -try_path=true +try_without_dir=true # First we try "bc", then "$dir/bc" for each item in $PATH. for dir in dummy:$PATH; do - if [ "$try_path" = true ]; then + if [ "$try_without_dir" = true ]; then # first iteration bc=bc - try_path=false + try_without_dir=false else # second and later iterations bc="$dir/bc" @@ -104,5 +104,8 @@ EOF done echo "No working bc found. Consider installing GNU bc." >&2 -echo "cat >/dev/null" +if [ "$1" = ignore ]; then + echo "cat >/dev/null" + exit 0 +fi exit 1