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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b205642518
commit
44d1929d0d
@ -550,6 +550,7 @@ class TestIO < Test::Unit::TestCase
|
||||
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__
|
||||
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|
|
||||
|
Loading…
x
Reference in New Issue
Block a user