diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-26 08:51:11 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-26 08:51:11 +0100 |
commit | 2fbe772172eb8f078031d68030e3b85c5bd8d57b (patch) | |
tree | 0ce70da7f33997a7bbe1e77cb8dd935ad9496f05 /tests/test-pread.sh | |
parent | 1baf5e2a66516cbc706eeb23f2451862a7ab0f89 (diff) | |
download | gnulib-2fbe772172eb8f078031d68030e3b85c5bd8d57b.tar.gz |
test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
* tests/test-pread.sh: Write no data into the pipe, because
test-pread actually reads none. This avoids a diagnostic,
"bash: echo: write error: Broken pipe", that arises in the unusual
event something is ignoring SIGPIPE, and might be interpreted
as some sort of failure. Reported by Bruno Haible.
Diffstat (limited to 'tests/test-pread.sh')
-rwxr-xr-x | tests/test-pread.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-pread.sh b/tests/test-pread.sh index 5ab88eb6ff..d7824ad1b1 100755 --- a/tests/test-pread.sh +++ b/tests/test-pread.sh @@ -2,7 +2,7 @@ : ${srcdir=.} . $srcdir/init.sh --set-path=. -fail=0; -echo abc | test-pread || fail=1 +fail=0 +: | test-pread || fail=1 Exit $fail |