summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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