Mercurial > gnulib
comparison tests/test-vfprintf-posix.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 | b6ae7b58fba1 |
children |
comparison
equal
deleted
inserted
replaced
40220:2796695e9216 | 40221:8c1a17df67e0 |
---|---|
2 | 2 |
3 tmpfiles="" | 3 tmpfiles="" |
4 trap 'rm -fr $tmpfiles' 1 2 3 15 | 4 trap 'rm -fr $tmpfiles' 1 2 3 15 |
5 | 5 |
6 tmpfiles="$tmpfiles t-vfprintf-posix.tmp t-vfprintf-posix.out" | 6 tmpfiles="$tmpfiles t-vfprintf-posix.tmp t-vfprintf-posix.out" |
7 ./test-vfprintf-posix${EXEEXT} > t-vfprintf-posix.tmp || exit 1 | 7 ${CHECKER} ./test-vfprintf-posix${EXEEXT} > t-vfprintf-posix.tmp || exit 1 |
8 LC_ALL=C tr -d '\r' < t-vfprintf-posix.tmp > t-vfprintf-posix.out || exit 1 | 8 LC_ALL=C tr -d '\r' < t-vfprintf-posix.tmp > t-vfprintf-posix.out || exit 1 |
9 | 9 |
10 : ${DIFF=diff} | 10 : ${DIFF=diff} |
11 ${DIFF} "${srcdir}/test-printf-posix.output" t-vfprintf-posix.out | 11 ${DIFF} "${srcdir}/test-printf-posix.output" t-vfprintf-posix.out |
12 result=$? | 12 result=$? |