summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/io/wait/test_io_wait_uncommon.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/io/wait/test_io_wait_uncommon.rb b/test/io/wait/test_io_wait_uncommon.rb
index d76be914a5..e7f222c578 100644
--- a/test/io/wait/test_io_wait_uncommon.rb
+++ b/test/io/wait/test_io_wait_uncommon.rb
@@ -59,7 +59,13 @@ class TestIOWaitUncommon < Test::Unit::TestCase
end
def test_wait_readable_random
- check_dev 'random'
+ File.open('/dev/random') do |fp|
+ assert_nothing_raised do
+ fp.wait_readable(0)
+ end
+ end
+ rescue SystemCallError => e
+ skip "/dev/random could not be opened #{e.message} (#{e.class})"
end
def test_wait_readable_zero