Mercurial > hg > octave-kai > gnulib-hg
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 |
rev | line source |
---|---|
7869 | 1 #!/bin/sh |
2 | |
3 tmpfiles="" | |
4 trap 'rm -fr $tmpfiles' 1 2 3 15 | |
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 | 9 |
10 rm -fr $tmpfiles | |
11 | |
12 exit 0 |