diff options
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 16656f0b24..9e8978fd05 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -508,6 +508,13 @@ class TestRubyOptions < Test::Unit::TestCase )x, nil, opts) + + bug7402 = '[ruby-core:49573]' + status = assert_in_out_err(['-e', 'class Bogus; def to_str; exit true; end; end', + '-e', '$".unshift Bogus.new', + '-e', 'Process.kill :SEGV, $$'], + "", //, /#<Bogus:/) + assert_not_predicate(status, :success?, "segv but success #{bug7402}") end def test_DATA |