annotate tests/test-binary-io.sh @ 16123:25b04be44d9e

binary-io tests: Avoid test failure on mingw when libtool is used. * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here. Don't verify the size of t-bin-out1.tmp here. * tests/test-binary-io.sh: Verify it here. Reported by Simon Josefsson.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Nov 2011 15:54:08 +0100
parents 6db7303a6033
children 2ef869fa79b4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7869
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 #!/bin/sh
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 tmpfiles=""
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 trap 'rm -fr $tmpfiles' 1 2 3 15
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5
8412
6db7303a6033 Choose better temporary filenames.
Bruno Haible <bruno@clisp.org>
parents: 7869
diff changeset
6 tmpfiles="$tmpfiles t-bin-out1.tmp t-bin-out2.tmp"
6db7303a6033 Choose better temporary filenames.
Bruno Haible <bruno@clisp.org>
parents: 7869
diff changeset
7 ./test-binary-io${EXEEXT} > t-bin-out1.tmp || exit 1
16123
25b04be44d9e binary-io tests: Avoid test failure on mingw when libtool is used.
Bruno Haible <bruno@clisp.org>
parents: 8412
diff changeset
8 cmp t-bin-out1.tmp t-bin-out2.tmp > /dev/null || exit 1
7869
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 rm -fr $tmpfiles
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11
d612855198c2 Test for the binary-io module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 exit 0