From: Richard Kettlewell Date: Fri, 30 May 2014 14:42:48 +0000 (+0100) Subject: Adjust error strings in test to match OS variations X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6d16fa67cdcffe22c158df95abecb10e02c58eed;p=vbig.git Adjust error strings in test to match OS variations --- diff --git a/t-args b/t-args index 0bedcb2..a7da519 100755 --- a/t-args +++ b/t-args @@ -19,7 +19,16 @@ set -e rm -f testoutput testexpect -echo 'ERROR: invalid size: Numerical result out of range' > testexpect +case $(uname -s) in +*BSD ) + ERANGE="Result too large" + ;; +* ) + ERANGE="Numerical result out of range" + ;; +esac + +echo "ERROR: invalid size: ${ERANGE}" > testexpect if ./vbig testfile 9223372036854775808 2>testoutput; then echo >&2 ERROR: unexpectedly succeeded exit 1