ruby-changes:51213
From: normal <ko1@a...>
Date: Tue, 15 May 2018 08:42:14 +0900 (JST)
Subject: [ruby-changes:51213] normal:r63420 (trunk): test_wait_for_single_fd.rb: relax test for newer FreeBSD
normal 2018-05-15 08:42:10 +0900 (Tue, 15 May 2018) New Revision: 63420 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63420 Log: test_wait_for_single_fd.rb: relax test for newer FreeBSD Modified files: trunk/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb Index: test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb =================================================================== --- test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb (revision 63419) +++ test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb (revision 63420) @@ -31,7 +31,10 @@ class TestWaitForSingleFD < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb#L31 # 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/