chiark / gitweb /
Adjust error strings in test to match OS variations
authorRichard Kettlewell <rjk@greenend.org.uk>
Fri, 30 May 2014 14:42:48 +0000 (15:42 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Fri, 30 May 2014 14:42:48 +0000 (15:42 +0100)
t-args

diff --git a/t-args b/t-args
index 0bedcb23d73a095a8b819fe382f8a48c15cfad4d..a7da519c4d3ed7840ccd351bdcc410282cff19af 100755 (executable)
--- a/t-args
+++ b/t-args
 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