[前][次][番号順一覧][スレッド一覧]

ruby-changes:31119

From: nobu <ko1@a...>
Date: Tue, 8 Oct 2013 16:20:00 +0900 (JST)
Subject: [ruby-changes:31119] nobu:r43198 (trunk): test_rubyoptions.rb: only one Bogus object

nobu	2013-10-08 16:19:54 +0900 (Tue, 08 Oct 2013)

  New Revision: 43198

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43198

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

  Modified files:
    trunk/test/ruby/test_rubyoptions.rb
Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 43197)
+++ test/ruby/test_rubyoptions.rb	(revision 43198)
@@ -546,9 +546,11 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L546
 
     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}")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]