summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-11 17:13:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-11 17:13:18 +0000
commita6455f2994994a44212eeb3693940065c5acbe7f (patch)
tree89119e96fff87cc24eb9cccff7ac99ab57d4e6d7 /test/ruby/test_rubyoptions.rb
parentb5e9c6cb903aa550713f5f5764964560f98e180f (diff)
Experimentally recommit of r38041: specify smaller max length
* vm_dump.c (rb_vm_bugreport): get rid of calling methods in sigsegv handler. based on a patch by charliesome (Charlie Somerville) [ruby-core:49573] [Bug #7402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb7
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