summaryrefslogtreecommitdiff
path: root/test/ruby/test_jit.rb
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-08 13:46:42 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-08 13:46:42 +0000
commitad2d2e3f0f10d7444398b5000fc2eacd99c9eaf4 (patch)
tree341cf51d935bd045c754fb79c9e6754261b52b9c /test/ruby/test_jit.rb
parent1ce45a446e2656bbf3c2796b9de45291dc6aa8c6 (diff)
include/ruby/ruby.h: import external symbols
properly on MinGW MJIT. test_jit.rb: all MJIT tests are now passing on MinGW. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r--test/ruby/test_jit.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 0bfedd3017..43e6d80573 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -77,7 +77,6 @@ class TestJIT < Test::Unit::TestCase
end
def test_compile_insn_blockparam
- skip_on_mingw
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '3', success_count: 2, insns: %i[getblockparam setblockparam])
begin;
def foo(&b)
@@ -164,8 +163,6 @@ class TestJIT < Test::Unit::TestCase
end
def test_compile_insn_putspecialobject_putiseq
- skip_on_mingw # [Bug #14948]
-
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: 'hellohello', success_count: 2, insns: %i[putspecialobject putiseq])
begin;
print 2.times.map {
@@ -178,7 +175,6 @@ class TestJIT < Test::Unit::TestCase
end
def test_compile_insn_putstring_concatstrings_tostring
- skip_on_mingw
assert_compile_once('"a#{}b" + "c"', result_inspect: '"abc"', insns: %i[putstring concatstrings tostring])
end
@@ -203,7 +199,6 @@ class TestJIT < Test::Unit::TestCase
end
def test_compile_insn_intern_duparray
- skip_on_mingw
assert_compile_once('[:"#{0}"] + [1,2,3]', result_inspect: '[:"0", 1, 2, 3]', insns: %i[intern duparray])
end
@@ -343,7 +338,6 @@ class TestJIT < Test::Unit::TestCase
end
def test_compile_insn_invokesuper
- skip_on_mingw
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '3', success_count: 4, insns: %i[invokesuper])
begin;
mod = Module.new {
@@ -362,7 +356,6 @@ class TestJIT < Test::Unit::TestCase
end
def test_compile_insn_invokeblock_leave
- skip_on_mingw
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '2', success_count: 2, insns: %i[invokeblock leave])
begin;
def foo
@@ -430,7 +423,6 @@ class TestJIT < Test::Unit::TestCase
end
def test_compile_insn_once
- skip_on_mingw
assert_compile_once('/#{true}/o =~ "true" && $~.to_a', result_inspect: '["true"]', insns: %i[once])
end
@@ -499,12 +491,10 @@ class TestJIT < Test::Unit::TestCase
end
def test_compile_insn_opt_aref_with
- skip_on_mingw
assert_compile_once("{ '1' => 2 }['1']", result_inspect: '2', insns: %i[opt_aref_with])
end
def test_compile_insn_opt_aset
- skip_on_mingw
assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: '5', insns: %i[opt_aset opt_aset_with])
begin;
hash = { '1' => 2 }
@@ -807,12 +797,6 @@ class TestJIT < Test::Unit::TestCase
ENV['APPVEYOR'] == 'True' && RUBY_PLATFORM.match?(/mswin/)
end
- def skip_on_mingw
- if RUBY_PLATFORM.match?(/mingw/)
- skip 'This test does not succeed on mingw yet.'
- end
- end
-
# The shortest way to test one proc
def assert_compile_once(script, result_inspect:, insns: [])
if script.match?(/\A\n.+\n\z/m)