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