Clean intermediate source file in TestMJIT#test_jit_failure
(#6994)
This commit is contained in:
parent
7e8fa06022
commit
dc8c5bafcf
Notes:
git
2022-12-22 21:06:49 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
@ -1197,13 +1197,15 @@ class TestMJIT < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_jit_failure
|
def test_jit_failure
|
||||||
_, err = eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", call_threshold: 2, verbose: 1)
|
_, err = Dir.mktmpdir("jit_test_jit_failure") do |dir|
|
||||||
begin;
|
eval_with_jit({"TMPDIR"=>dir}, "#{<<~"begin;"}\n#{<<~"end;"}", call_threshold: 2, verbose: 1)
|
||||||
2.times do
|
begin;
|
||||||
class A
|
2.times do
|
||||||
|
class A
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end;
|
||||||
end;
|
end
|
||||||
assert_match(/^MJIT warning: .+ unsupported instruction: defineclass/, err)
|
assert_match(/^MJIT warning: .+ unsupported instruction: defineclass/, err)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user