pty: Activate the signature wrapper of forkpty.
[gnulib.git] / tests / test-binary-io.sh
1 #!/bin/sh
2
3 tmpfiles=""
4 trap 'rm -fr $tmpfiles' 1 2 3 15
5
6 tmpfiles="$tmpfiles t-bin-out0.tmp t-bin-out1.tmp t-bin-out2.tmp"
7 ./test-binary-io${EXEEXT} 1 > t-bin-out1.tmp || exit 1
8 cmp t-bin-out0.tmp t-bin-out1.tmp > /dev/null || exit 1
9 ./test-binary-io${EXEEXT} 2 > t-bin-out2.tmp || exit 1
10 cmp t-bin-out0.tmp t-bin-out2.tmp > /dev/null || exit 1
11
12 rm -fr $tmpfiles
13
14 exit 0