Hash :
b54782e2
Author :
Date :
2023-03-24T12:05:26
dprintf-gnu: Add tests. * tests/test-dprintf-gnu.sh: New file, based on tests/test-dprintf-posix.sh. * tests/test-dprintf-gnu.c: New file, based on tests/test-vasnprintf-gnu.c. * modules/dprintf-gnu-tests: New file, based on modules/dprintf-posix-tests.
#!/bin/sh
tmpfiles=""
trap 'rm -fr $tmpfiles' HUP INT QUIT TERM
tmpfiles="$tmpfiles t-dprintf-gnu.tmp t-dprintf-gnu.out"
${CHECKER} ./test-dprintf-gnu${EXEEXT} > t-dprintf-gnu.tmp || exit 1
LC_ALL=C tr -d '\r' < t-dprintf-gnu.tmp > t-dprintf-gnu.out || exit 1
: "${DIFF=diff}"
${DIFF} "${srcdir}/test-printf-gnu.output" t-dprintf-gnu.out
result=$?
rm -fr $tmpfiles
exit $result