summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lib/zombie_hunter.rb4
-rw-r--r--test/ruby/test_io.rb3
-rw-r--r--test/ruby/test_rubyoptions.rb2
3 files changed, 8 insertions, 1 deletions
diff --git a/test/lib/zombie_hunter.rb b/test/lib/zombie_hunter.rb
index 2b81e396ac..ea94844b53 100644
--- a/test/lib/zombie_hunter.rb
+++ b/test/lib/zombie_hunter.rb
@@ -1,4 +1,8 @@
# frozen_string_literal: true
+
+# There might be compiler processes executed by MJIT
+return if RubyVM::MJIT.enabled?
+
module ZombieHunter
def after_teardown
super
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 0b26608a0e..2f0a8a7025 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -543,6 +543,9 @@ class TestIO < Test::Unit::TestCase
if have_nonblock?
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?
+
msg = 'r58534 [ruby-core:80969] [Backport #13533]'
IO.pipe do |r,w|
r.nonblock = true
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 083dcec027..dac38a1dc9 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -26,7 +26,7 @@ class TestRubyOptions < Test::Unit::TestCase
def test_usage
assert_in_out_err(%w(-h)) do |r, e|
- assert_operator(r.size, :<=, 24)
+ assert_operator(r.size, :<=, 25)
longer = r[1..-1].select {|x| x.size > 80}
assert_equal([], longer)
assert_equal([], e)