openat: don’t close (-1)
[gnulib.git] / tests / test-zprintf-gnu.sh
blobc5902178a5a20eb4a7090260570a5574bc851986
1 #!/bin/sh
3 tmpfiles=""
4 trap 'rm -fr $tmpfiles' HUP INT QUIT TERM
6 tmpfiles="$tmpfiles t-zprintf-gnu.tmp t-zprintf-gnu.out"
7 ${CHECKER} ./test-zprintf-gnu${EXEEXT} > t-zprintf-gnu.tmp || exit 1
8 LC_ALL=C tr -d '\r' < t-zprintf-gnu.tmp > t-zprintf-gnu.out || exit 1
10 : "${DIFF=diff}"
11 ${DIFF} "${srcdir}/test-printf-gnu.output" t-zprintf-gnu.out
12 result=$?
14 rm -fr $tmpfiles
16 exit $result