summaryrefslogtreecommitdiff
path: root/tests/mv/i-3
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-04-01 16:59:54 +0200
committerJim Meyering <meyering@redhat.com>2009-04-02 08:44:12 +0200
commit4145a1e54cb45cbd65091a0be0475c1659c0a846 (patch)
tree0fb169de66f17d886a59e1e198266b0298589545 /tests/mv/i-3
parent1417251e296226e34d25d8ca8c2b99d12c2c21f0 (diff)
downloadcoreutils-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.
Diffstat (limited to 'tests/mv/i-3')
-rwxr-xr-xtests/mv/i-33
1 files changed, 3 insertions, 0 deletions
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