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