summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-14 23:42:10 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-14 23:42:10 +0000
commitbaaf3ba189cd31a99fce3a3932cb30fd07e8eb19 (patch)
treebc58f537dc055d0cfa02d5c52cbdd4531efbf0b6
parent3bc10457a80c119272cf274e0fee2bdeb73d6015 (diff)
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
-rw-r--r--test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb5
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 1141dd317c8..453870796e2 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