diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-14 23:42:10 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-14 23:42:10 +0000 |
commit | 23120462b0d08374306ec01a71444e7a73f7e502 (patch) | |
tree | bc58f537dc055d0cfa02d5c52cbdd4531efbf0b6 /test/-ext- | |
parent | 6b59a1178fc1f681a41f83a0d95c296dabbce9b7 (diff) | |
download | ruby-23120462b0d08374306ec01a71444e7a73f7e502.tar.gz |
test_wait_for_single_fd.rb: relax test for newer FreeBSD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb index 1141dd317c..453870796e 100644 --- a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb +++ b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb @@ -31,7 +31,10 @@ class TestWaitForSingleFD < Test::Unit::TestCase # FreeBSD 8.2 or prior sticks this # http://bugs.ruby-lang.org/issues/5524 - skip if /freebsd[1-8]/ =~ RUBY_PLATFORM + if /freebsd([\d\.]+)/ =~ RUBY_PLATFORM + ver = $1.to_r + skip 'FreeBSD <= 8.2' if ver <= 8.2r + end with_pipe do |r,w| wfd = w.fileno w.close |