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