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

test_rubyoptions.rb: only one Bogus object

* test/ruby/test_rubyoptions.rb (test_segv_loaded_features): leave
  only one Bogus object in $LOADED_FEATURES.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-10-08 07:19:54 +00:00
parent 9c6ea2f200
commit 377758fdcb

View file

@ -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}")