Mercurial > gnulib
diff tests/test-xstrtol.sh @ 40221:8c1a17df67e0
tests: Prepare for using valgrind.
tests/*.sh: Invoke all test programs through ${CHECKER}.
tests/*/*.sh: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Mar 2019 11:32:11 +0100 |
parents | 93ffcec1bbd4 |
children |
line wrap: on
line diff
--- a/tests/test-xstrtol.sh Sun Mar 10 01:28:42 2019 +0100 +++ b/tests/test-xstrtol.sh Sun Mar 10 11:32:11 2019 +0100 @@ -6,29 +6,29 @@ result=0 # test xstrtol -test-xstrtol 1 >> out 2>&1 || result=1 -test-xstrtol -1 >> out 2>&1 || result=1 -test-xstrtol 1k >> out 2>&1 || result=1 -test-xstrtol ${too_big}h >> out 2>&1 && result=1 -test-xstrtol $too_big >> out 2>&1 && result=1 -test-xstrtol x >> out 2>&1 && result=1 -test-xstrtol 9x >> out 2>&1 && result=1 -test-xstrtol 010 >> out 2>&1 || result=1 +${CHECKER} test-xstrtol 1 >> out 2>&1 || result=1 +${CHECKER} test-xstrtol -1 >> out 2>&1 || result=1 +${CHECKER} test-xstrtol 1k >> out 2>&1 || result=1 +${CHECKER} test-xstrtol ${too_big}h >> out 2>&1 && result=1 +${CHECKER} test-xstrtol $too_big >> out 2>&1 && result=1 +${CHECKER} test-xstrtol x >> out 2>&1 && result=1 +${CHECKER} test-xstrtol 9x >> out 2>&1 && result=1 +${CHECKER} test-xstrtol 010 >> out 2>&1 || result=1 # suffix without integer is valid -test-xstrtol MiB >> out 2>&1 || result=1 -test-xstrtol 1bB >> out 2>&1 && result=1 +${CHECKER} test-xstrtol MiB >> out 2>&1 || result=1 +${CHECKER} test-xstrtol 1bB >> out 2>&1 && result=1 # test xstrtoul -test-xstrtoul 1 >> out 2>&1 || result=1 -test-xstrtoul -1 >> out 2>&1 && result=1 -test-xstrtoul 1k >> out 2>&1 || result=1 -test-xstrtoul ${too_big}h >> out 2>&1 && result=1 -test-xstrtoul $too_big >> out 2>&1 && result=1 -test-xstrtoul x >> out 2>&1 && result=1 -test-xstrtoul 9x >> out 2>&1 && result=1 -test-xstrtoul 010 >> out 2>&1 || result=1 -test-xstrtoul MiB >> out 2>&1 || result=1 -test-xstrtoul 1bB >> out 2>&1 && result=1 +${CHECKER} test-xstrtoul 1 >> out 2>&1 || result=1 +${CHECKER} test-xstrtoul -1 >> out 2>&1 && result=1 +${CHECKER} test-xstrtoul 1k >> out 2>&1 || result=1 +${CHECKER} test-xstrtoul ${too_big}h >> out 2>&1 && result=1 +${CHECKER} test-xstrtoul $too_big >> out 2>&1 && result=1 +${CHECKER} test-xstrtoul x >> out 2>&1 && result=1 +${CHECKER} test-xstrtoul 9x >> out 2>&1 && result=1 +${CHECKER} test-xstrtoul 010 >> out 2>&1 || result=1 +${CHECKER} test-xstrtoul MiB >> out 2>&1 || result=1 +${CHECKER} test-xstrtoul 1bB >> out 2>&1 && result=1 # Find out how to remove carriage returns from output. Solaris /usr/ucb/tr # does not understand '\r'.