]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: skip mv/i-3 if /dev/stdin is unreadable
authorJim Meyering <meyering@redhat.com>
Wed, 1 Apr 2009 14:59:54 +0000 (16:59 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 2 Apr 2009 06:44:12 +0000 (08:44 +0200)
* tests/mv/i-3: Skip if /dev/stdin is unreadable.
Reported by Sergei Steshenko.

THANKS
tests/mv/i-3

diff --git a/THANKS b/THANKS
index 665a9ef7e6c47477c8d4ea7a174e1c3f3a9be7c9..11f43ac68ba44b1b8f77c9efb6d5f46ae1bab4e2 100644 (file)
--- 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
index d1f119c42ce714397f66923cb46c3b9d42bbfcc8..738605bd0a66975e6b95f46d097377019122e065 100755 (executable)
@@ -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