summaryrefslogtreecommitdiff
path: root/tests/test-dprintf-gnu.sh
blob: 8f2665446be901e8089d6de957caeeb099063620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

tmpfiles=""
trap 'rm -fr $tmpfiles' HUP INT QUIT TERM

tmpfiles="$tmpfiles t-dprintf-gnu.tmp t-dprintf-gnu.out"
${CHECKER} ./test-dprintf-gnu${EXEEXT} > t-dprintf-gnu.tmp || exit 1
LC_ALL=C tr -d '\r' < t-dprintf-gnu.tmp > t-dprintf-gnu.out || exit 1

: "${DIFF=diff}"
${DIFF} "${srcdir}/test-printf-gnu.output" t-dprintf-gnu.out
result=$?

rm -fr $tmpfiles

exit $result