1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

try to remove some test skips for MJIT

Eric Wong made some effort to keep compatibility around fd with MJIT.
Also I'm hoping r65279 (and r65280) eliminates major MJIT bugs, so I
want to start solely testing MJIT. Other test skips branched by MJIT
enablement seemed reasonable to me.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-10-21 15:54:50 +00:00
parent 84d747c6d9
commit e6202c41b5
4 changed files with 0 additions and 8 deletions

View file

@ -6,8 +6,6 @@ require 'io/wait'
class TestThreadFdClose < Test::Unit::TestCase class TestThreadFdClose < Test::Unit::TestCase
def test_thread_fd_close def test_thread_fd_close
skip "MJIT thread is unexpected for this" if RubyVM::MJIT.enabled?
IO.pipe do |r, w| IO.pipe do |r, w|
th = Thread.new do th = Thread.new do
begin begin

View file

@ -336,7 +336,6 @@ p Foo::Bar
end end
def test_no_leak def test_no_leak
skip "This sometimes fails with -DMJIT_FORCE_ENABLE. To be investigated." if RubyVM::MJIT.enabled?
assert_no_memory_leak([], '', <<~'end;', 'many autoloads', timeout: 30) assert_no_memory_leak([], '', <<~'end;', 'many autoloads', timeout: 30)
200000.times do |i| 200000.times do |i|
m = Module.new m = Module.new

View file

@ -647,10 +647,6 @@ CODE
end end
def test_crypt def test_crypt
if RubyVM::MJIT.enabled?
skip "This sometimes fails with -DMJIT_FORCE_ENABLE. This seems important to be fixed..."
end
assert_equal(S('aaGUC/JkO9/Sc'), S("mypassword").crypt(S("aa"))) assert_equal(S('aaGUC/JkO9/Sc'), S("mypassword").crypt(S("aa")))
assert_not_equal(S('aaGUC/JkO9/Sc'), S("mypassword").crypt(S("ab"))) assert_not_equal(S('aaGUC/JkO9/Sc'), S("mypassword").crypt(S("ab")))
assert_raise(ArgumentError) {S("mypassword").crypt(S(""))} assert_raise(ArgumentError) {S("mypassword").crypt(S(""))}

View file

@ -5,7 +5,6 @@ require 'rubygems/util'
class TestGemUtil < Gem::TestCase class TestGemUtil < Gem::TestCase
def test_class_popen def test_class_popen
skip "MJIT executes process and it's caught by Process.wait(-1)" if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
assert_equal "0\n", Gem::Util.popen(Gem.ruby, '-e', 'p 0') assert_equal "0\n", Gem::Util.popen(Gem.ruby, '-e', 'p 0')
assert_raises Errno::ECHILD do assert_raises Errno::ECHILD do