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:
parent
6764256dc7
commit
1454906d4e
Notes:
git
2021-11-18 03:20:55 +09:00
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue