mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
* tests/test-zprintf-posix.c: New file, based on tests/test-printf-posix.c. * tests/test-zprintf-posix.sh: New file, based on tests/test-printf-posix.sh. * modules/zprintf-posix-tests: New file.
17 lines
399 B
Bash
Executable File
17 lines
399 B
Bash
Executable File
#!/bin/sh
|
|
|
|
tmpfiles=""
|
|
trap 'rm -fr $tmpfiles' HUP INT QUIT TERM
|
|
|
|
tmpfiles="$tmpfiles t-zprintf-posix.tmp t-zprintf-posix.out"
|
|
${CHECKER} ./test-zprintf-posix${EXEEXT} > t-zprintf-posix.tmp || exit 1
|
|
LC_ALL=C tr -d '\r' < t-zprintf-posix.tmp > t-zprintf-posix.out || exit 1
|
|
|
|
: "${DIFF=diff}"
|
|
${DIFF} "${srcdir}/test-printf-posix.output" t-zprintf-posix.out
|
|
result=$?
|
|
|
|
rm -fr $tmpfiles
|
|
|
|
exit $result
|