diff options
author | Jim Meyering <meyering@redhat.com> | 2009-04-01 16:59:54 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-04-02 08:44:12 +0200 |
commit | 4145a1e54cb45cbd65091a0be0475c1659c0a846 (patch) | |
tree | 0fb169de66f17d886a59e1e198266b0298589545 | |
parent | 1417251e296226e34d25d8ca8c2b99d12c2c21f0 (diff) | |
download | coreutils-4145a1e54cb45cbd65091a0be0475c1659c0a846.tar.xz |
tests: skip mv/i-3 if /dev/stdin is unreadable
* tests/mv/i-3: Skip if /dev/stdin is unreadable.
Reported by Sergei Steshenko.
-rw-r--r-- | THANKS | 1 | ||||
-rwxr-xr-x | tests/mv/i-3 | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -509,6 +509,7 @@ Santiago Vila Doncel sanvila@unex.es Savochkin Andrey Vladimirovich saw@msu.ru Scott Lurndal slurn@griffin.engr.sgi.com Sébastien Maret smaret@umich.edu +Sergei Steshenko sergstesh@yahoo.com Shing-Shong Shei shei@cs.indiana.edu Soeren Sonnenburg sonnenburg@informatik.hu-berlin.de Solar Designer solar@owl.openwall.com diff --git a/tests/mv/i-3 b/tests/mv/i-3 index d1f119c42..738605bd0 100755 --- a/tests/mv/i-3 +++ b/tests/mv/i-3 @@ -35,6 +35,9 @@ fail=0 ls /dev/stdin >/dev/null 2>&1 \ || skip_test_ 'there is no /dev/stdin file' +test -r /dev/stdin 2>&1 \ + || skip_test_ '/dev/stdin is not readable' + mv f g < /dev/stdin > out 2>&1 & pid=$! sleep 1 kill $pid |