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