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

Add tests for cme NULL crash

Tests for GitHub PR #5122. Originally in GitHub PR #5121.
This commit is contained in:
Peter Zhu 2021-11-17 09:07:47 -05:00
parent 6764256dc7
commit 1454906d4e
Notes: git 2021-11-18 03:20:55 +09:00

View file

@ -549,7 +549,13 @@ class TestSuper < Test::Unit::TestCase
o = b.new
o.danger!
2.times { o.missing rescue NoMethodError }
begin
original_gc_stress = GC.stress
GC.stress = true
2.times { o.missing rescue NoMethodError }
ensure
GC.stress = original_gc_stress
end
end
def test_from_eval