From e67b307e559a883f1f7bca34c1062ab83f03dd49 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 15 Oct 2014 10:57:17 +0000 Subject: Simplify a regexp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_rubyoptions.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 61e11a43fd..b435bd95d9 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -506,10 +506,10 @@ class TestRubyOptions < Test::Unit::TestCase module SEGVTest opts = {} if /mswin|mingw/ =~ RUBY_PLATFORM - additional = '[\s\w\.\']*' + additional = /[\s\w\.\']*/ else opts[:rlimit_core] = 0 - additional = "" + additional = nil end ExecOptions = opts.freeze @@ -546,9 +546,9 @@ class TestRubyOptions < Test::Unit::TestCase (?:.*\n)? For\sdetails:\shttp:\/\/.*\.ruby-lang\.org/.*\n \n - (?:#{additional}) - )x + )x, ] + ExpectedStderrList << additional if additional end def assert_segv(args, message=nil) -- cgit v1.2.3