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 | baaf3ba189cd31a99fce3a3932cb30fd07e8eb19 (patch) | |
tree | bc58f537dc055d0cfa02d5c52cbdd4531efbf0b6 /test/-ext- | |
parent | 3bc10457a80c119272cf274e0fee2bdeb73d6015 (diff) | |
download | ruby-baaf3ba189cd31a99fce3a3932cb30fd07e8eb19.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 |