ruby-changes:72722
From: Hiroshi <ko1@a...>
Date: Thu, 28 Jul 2022 19:45:40 +0900 (JST)
Subject: [ruby-changes:72722] 3eade59919 (master): Skip randomly failing tests with FreeBSD 12
https://git.ruby-lang.org/ruby.git/commit/?id=3eade59919 From 3eade599194dac960bc5b81c3f1bcff4a460b959 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 28 Jul 2022 19:45:15 +0900 Subject: Skip randomly failing tests with FreeBSD 12 --- test/ruby/test_io.rb | 6 ++++++ test/ruby/test_thread.rb | 2 ++ 2 files changed, 8 insertions(+) diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index b8530e7400..6a3d7594cf 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -3114,6 +3114,8 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3114 end def test_cross_thread_close_stdio + omit "[Bug #18613]" if /freebsd/ =~ RUBY_PLATFORM + assert_separately([], <<-'end;') IO.pipe do |r,w| $stdin.reopen(r) @@ -3782,6 +3784,8 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3784 end def test_race_closed_stream + omit "[Bug #18613]" if /freebsd/ =~ RUBY_PLATFORM + assert_separately([], "#{<<-"begin;"}\n#{<<-"end;"}") begin; bug13158 = '[ruby-core:79262] [Bug #13158]' @@ -3876,6 +3880,8 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3880 end def test_closed_stream_in_rescue + omit "[Bug #18613]" if /freebsd/ =~ RUBY_PLATFORM + assert_separately([], "#{<<-"begin;"}\n#{<<~"end;"}") begin; 10.times do diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 881c4d102d..f6156a16fd 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -972,6 +972,8 @@ _eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L972 end def test_thread_timer_and_interrupt + omit "[Bug #18613]" if /freebsd/ =~ RUBY_PLATFORM + bug5757 = '[ruby-dev:44985]' pid = nil cmd = 'Signal.trap(:INT, "DEFAULT"); pipe=IO.pipe; Thread.start {Thread.pass until Thread.main.stop?; puts; STDOUT.flush}; pipe[0].read' -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/