From 6d16fa67cdcffe22c158df95abecb10e02c58eed Mon Sep 17 00:00:00 2001 From: Richard Kettlewell Date: Fri, 30 May 2014 15:42:48 +0100 Subject: [PATCH] Adjust error strings in test to match OS variations --- t-args | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.30.2