From 11e078fb04fd6f3f1627ac46db2caaff69c303a8 Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 16 May 2010 12:20:02 +0000 Subject: [PATCH] * ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test): fixes "NoMethodError: undefined method `[]=' for nil:NilClass" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_rubyoptions.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 28196b12db..94fd225f04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun May 16 21:14:04 2010 Yuki Sonoda (Yugui) + + * ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test): + fixes "NoMethodError: undefined method `[]=' for nil:NilClass" + Sun May 16 17:16:09 2010 Yusuke Endoh * proc.c (proc_binding): don't propagative filename and line_no of diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index f5bc830830..7b956810a1 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -365,8 +365,8 @@ class TestRubyOptions < Test::Unit::TestCase end def test_segv_test + opts = {} if /mswin|mingw/ =~ RUBY_PLATFORM - opts = {} additional = '[\s\w\.\']*' else opts[:rlimit_core] = 0