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