From 377758fdcba8c3655da6fd45808a69ac3c4bab82 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 8 Oct 2013 07:19:54 +0000 Subject: 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 --- test/ruby/test_rubyoptions.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_rubyoptions.rb') 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, $$'], - "", //, /#