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

ruby-changes:15901

From: yugui <ko1@a...>
Date: Sun, 16 May 2010 21:20:15 +0900 (JST)
Subject: [ruby-changes:15901] Ruby:r27843 (trunk): * ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test):

yugui	2010-05-16 21:20:02 +0900 (Sun, 16 May 2010)

  New Revision: 27843

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

  Log:
    * ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test):
      fixes "NoMethodError: undefined method `[]=' for nil:NilClass"

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_rubyoptions.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27842)
+++ ChangeLog	(revision 27843)
@@ -1,3 +1,8 @@
+Sun May 16 21:14:04 2010  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test):
+	  fixes "NoMethodError: undefined method `[]=' for nil:NilClass"
+
 Sun May 16 17:16:09 2010  Yusuke Endoh  <mame@t...>
 
 	* proc.c (proc_binding): don't propagative filename and line_no of
Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 27842)
+++ test/ruby/test_rubyoptions.rb	(revision 27843)
@@ -365,8 +365,8 @@
   end
 
   def test_segv_test
+    opts = {}
     if /mswin|mingw/ =~ RUBY_PLATFORM
-      opts = {}
       additional = '[\s\w\.\']*'
     else
       opts[:rlimit_core] = 0

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

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