chiark
/
gitweb
/
~ianmdlvl
/
vbig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
519fb14
)
Adjust error strings in test to match OS variations
author
Richard Kettlewell
<rjk@greenend.org.uk>
Fri, 30 May 2014 14:42:48 +0000
(15:42 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Fri, 30 May 2014 14:42:48 +0000
(15:42 +0100)
t-args
patch
|
blob
|
history
diff --git
a/t-args
b/t-args
index 0bedcb23d73a095a8b819fe382f8a48c15cfad4d..a7da519c4d3ed7840ccd351bdcc410282cff19af 100755
(executable)
--- 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