summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-06-15 09:40:54 -0700
committerGitHub <noreply@github.com>2022-06-15 09:40:54 -0700
commit1162523bae926cfa6128043b635e28c14b732754 (patch)
tree5bdc6c91d8cb361f3b6ab3b8f6e7246e18b8a6f0 /test/ruby
parent64fb3279d2063ea39280e9d9dc9154b6788c61e1 (diff)
downloadruby-1162523bae926cfa6128043b635e28c14b732754.tar.gz
Remove MJIT worker thread (#6006)
[Misc #18830]
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_rubyvm_mjit.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_rubyvm_mjit.rb b/test/ruby/test_rubyvm_mjit.rb
index 92733a2b15..8ca0fb9ef2 100644
--- a/test/ruby/test_rubyvm_mjit.rb
+++ b/test/ruby/test_rubyvm_mjit.rb
@@ -87,7 +87,11 @@ class TestRubyVMMJIT < Test::Unit::TestCase
print RubyVM::MJIT.pause(wait: false)
EOS
assert_equal('truefalse', out)
- assert_equal(true, err.scan(/#{JITSupport::JIT_SUCCESS_PREFIX}/).size < 10)
+ if RUBY_PLATFORM.match?(/mswin|mingw/) # MJIT synchronously compiles methods on Windows
+ assert_equal(10, err.scan(/#{JITSupport::JIT_SUCCESS_PREFIX}/).size)
+ else
+ assert_equal(true, err.scan(/#{JITSupport::JIT_SUCCESS_PREFIX}/).size < 10)
+ end
end
def test_resume