ruby-changes:15860
From: usa <ko1@a...>
Date: Fri, 14 May 2010 14:01:05 +0900 (JST)
Subject: [ruby-changes:15860] Ruby:r27796 (trunk): * test/ruby/test_rubyoptions.rb (test_segv_test): VC runtime adds some messages
usa 2010-05-14 13:59:15 +0900 (Fri, 14 May 2010) New Revision: 27796 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27796 Log: * test/ruby/test_rubyoptions.rb (test_segv_test): VC runtime adds some messages when SEGV occurs Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 27795) +++ test/ruby/test_rubyoptions.rb (revision 27796) @@ -365,6 +365,13 @@ end def test_segv_test + if /mswin|mingw/ =~ RUBY_PLATFORM + opts = {} + additional = '[\s\w\.\']*' + else + opts[:rlimit_core] = 0 + additional = "" + end assert_in_out_err(["-e", "Process.kill :SEGV, $$"], "", [], %r(\A -e:(?:1:)?\s\[BUG\]\sSegmentation\sfault\n @@ -385,9 +392,12 @@ \[NOTE\]\n You\smay\shave\sencountered\sa\sbug\sin\sthe\sRuby\sinterpreter\sor\sextension\slibraries.\n Bug\sreports\sare\swelcome.\n - For\sdetails:\shttp:\/\/www.ruby-lang.org/bugreport.html\n\n\z + For\sdetails:\shttp:\/\/www.ruby-lang.org/bugreport.html\n + \n + (?:#{additional}) + \z )x, nil, - :rlimit_core=>0) + opts) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/