mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/io/wait/test_io_wait_uncommon.rb: relax /dev/random check
Too many machines lack entropy to have a usable /dev/random. I had similar problems on my system until I started using haveged(8), but we can't require that for CI. cf. https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian/ruby-trunk/log/20180825T213003Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
894847a5de
commit
32910b8781
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue