зеркало из https://github.com/github/ruby.git
Clean intermediate source file in `TestMJIT#test_jit_failure` (#6994)
This commit is contained in:
Родитель
7e8fa06022
Коммит
dc8c5bafcf
|
@ -1197,13 +1197,15 @@ class TestMJIT < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_jit_failure
|
||||
_, err = eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", call_threshold: 2, verbose: 1)
|
||||
begin;
|
||||
2.times do
|
||||
class A
|
||||
_, err = Dir.mktmpdir("jit_test_jit_failure") do |dir|
|
||||
eval_with_jit({"TMPDIR"=>dir}, "#{<<~"begin;"}\n#{<<~"end;"}", call_threshold: 2, verbose: 1)
|
||||
begin;
|
||||
2.times do
|
||||
class A
|
||||
end
|
||||
end
|
||||
end
|
||||
end;
|
||||
end;
|
||||
end
|
||||
assert_match(/^MJIT warning: .+ unsupported instruction: defineclass/, err)
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче