malloca: Silence a warning from clang's memory sanitizer.
[gnulib.git] / tests / test-xprintf-posix.sh
blob0087a9d4443f52192af83c095d1a74d264b6f531
1 #!/bin/sh
3 tmpfiles=""
4 trap 'rm -fr $tmpfiles' 1 2 3 15
6 tmpfiles="$tmpfiles t-xprintf-posix.tmp t-xprintf-posix.out"
7 ./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 ./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