diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-08 07:19:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-08 07:19:54 +0000 |
commit | 377758fdcba8c3655da6fd45808a69ac3c4bab82 (patch) | |
tree | a1a18205a0b922ac906b3b48ca4caedeaf54d82b /test | |
parent | 9c6ea2f2004081591417ab2195ca487053c3b101 (diff) | |
download | ruby-377758fdcba8c3655da6fd45808a69ac3c4bab82.tar.gz |
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
Diffstat (limited to 'test')
-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}") |