3 .
"$srcdir/init.sh"; path_prepend_ .
5 too_big
=99999999999999999999999999999999999999999999999999999999999999999999
9 ${CHECKER} test-xstrtoimax
1 >> out
2>&1 || result
=1
10 ${CHECKER} test-xstrtoimax
-1 >> out
2>&1 || result
=1
11 ${CHECKER} test-xstrtoimax
1k
>> out
2>&1 || result
=1
12 ${CHECKER} test-xstrtoimax
${too_big}h
>> out
2>&1 && result
=1
13 ${CHECKER} test-xstrtoimax
$too_big >> out
2>&1 && result
=1
14 ${CHECKER} test-xstrtoimax x
>> out
2>&1 && result
=1
15 ${CHECKER} test-xstrtoimax
9x
>> out
2>&1 && result
=1
16 ${CHECKER} test-xstrtoimax
010 >> out
2>&1 || result
=1
17 ${CHECKER} test-xstrtoimax MiB
>> out
2>&1 || result
=1
19 # Find out how to remove carriage returns from output. Solaris /usr/ucb/tr
20 # does not understand '\r'.
21 if echo solaris |
tr -d '\r' |
grep solais
> /dev
/null
; then
28 LC_ALL
=C
tr -d "$cr" < out
> k
31 # compare expected output
36 invalid suffix in X argument '${too_big}h'
37 X argument '$too_big' too large
38 invalid X argument 'x'
39 invalid suffix in X argument '9x'
44 compare exp out || result
=1