ruby-changes:51738
From: normal <ko1@a...>
Date: Wed, 11 Jul 2018 18:47:41 +0900 (JST)
Subject: [ruby-changes:51738] normal:r63950 (trunk): test/ruby/test_io.rb: skip garbage and CPU tests if multi-threaded
normal 2018-07-11 18:47:36 +0900 (Wed, 11 Jul 2018) New Revision: 63950 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63950 Log: test/ruby/test_io.rb: skip garbage and CPU tests if multi-threaded Threads should not be active during these tests, but maybe they are... ref: https://bugs.ruby-lang.org/issues/14906 Modified files: trunk/test/ruby/test_io.rb Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 63949) +++ test/ruby/test_io.rb (revision 63950) @@ -550,6 +550,7 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L550 def test_copy_stream_no_busy_wait # JIT has busy wait on GC. It's hard to test this with JIT. skip "MJIT has busy wait on GC. We can't test this with JIT." if RubyVM::MJIT.enabled? + skip "multiple threads already active" if Thread.list.size > 1 msg = 'r58534 [ruby-core:80969] [Backport #13533]' IO.pipe do |r,w| @@ -3701,6 +3702,7 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3702 end def test_write_no_garbage + skip "multiple threads already active" if Thread.list.size > 1 res = {} ObjectSpace.count_objects(res) # creates strings on first call [ 'foo'.b, '*' * 24 ].each do |buf| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/