Mercurial > hg > octave-nkf > gnulib-hg
annotate tests/test-pread.sh @ 17935:0ad1f4c9eed5 default tip
tests: support stderr verification with returns_()
* tests/init.sh (returns_): Disable tracing for this wrapper
function, so that stderr of the wrapped command is unchanged,
allowing for verification of the contents.
author | Pádraig Brady <P@draigBrady.com> |
---|---|
date | Mon, 16 Feb 2015 17:20:39 +0000 |
parents | 44954971957b |
children |
rev | line source |
---|---|
12357
8224b244d6c2
correct typo in test-pread.sh
Jim Meyering <meyering@redhat.com>
parents:
12356
diff
changeset
|
1 #!/bin/sh |
12404
44954971957b
init.sh: avoid Solaris 10 /bin/sh portability problem
Jim Meyering <meyering@redhat.com>
parents:
12365
diff
changeset
|
2 . "${srcdir=.}/init.sh"; path_prepend_ . |
12356 | 3 |
12364
ed32b5a7bd26
test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
Jim Meyering <meyering@redhat.com>
parents:
12363
diff
changeset
|
4 fail=0 |
ed32b5a7bd26
test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
Jim Meyering <meyering@redhat.com>
parents:
12363
diff
changeset
|
5 : | test-pread || fail=1 |
12356 | 6 |
7 Exit $fail |