diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index df0e23c9ed..0b1ed8fadb 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -546,9 +546,11 @@ class TestRubyOptions < Test::Unit::TestCase bug7402 = '[ruby-core:49573]' status = assert_in_out_err(['-e', 'class Bogus; def to_str; exit true; end; end', + '-e', '$".clear', '-e', '$".unshift Bogus.new', + '-e', '(p $"; abort) unless $".size == 1', '-e', 'Process.kill :SEGV, $$'], - "", //, /#<Bogus:/, + "", [], /#<Bogus:/, nil, opts) assert_not_predicate(status, :success?, "segv but success #{bug7402}") |