summaryrefslogtreecommitdiff
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
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.
-rw-r--r--THANKS1
-rwxr-xr-xtests/mv/i-33
2 files changed, 4 insertions, 0 deletions
diff --git a/THANKS b/THANKS
index 665a9ef7e..11f43ac68 100644
--- a/THANKS
+++ b/THANKS
@@ -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