3 rm -f testoutput testexpect
5 echo 'ERROR: invalid size: Numerical result out of range' > testexpect
6 if ./vbig testfile 9223372036854775808 2>testoutput; then
7 echo >&2 ERROR: unexpectedly succeeded
10 diff -u testexpect testoutput
12 echo 'ERROR: invalid size' > testexpect
13 if ./vbig testfile 9007199254740992K 2>testoutput; then
14 echo >&2 ERROR: unexpectedly succeeded
17 diff -u testexpect testoutput
19 if ./vbig testfile 8796093022208G 2>testoutput; then
20 echo >&2 ERROR: unexpectedly succeeded
23 diff -u testexpect testoutput
25 echo 'ERROR: invalid scale' > testexpect
26 if ./vbig testfile 1T 2>testoutput; then
27 echo >&2 ERROR: unexpectedly succeeded
30 diff -u testexpect testoutput
32 if ./vbig testfile 1KK 2>testoutput; then
33 echo >&2 ERROR: unexpectedly succeeded
36 diff -u testexpect testoutput
39 rm -f testoutput testexpect