diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 10:57:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-15 10:57:17 +0000 |
commit | e67b307e559a883f1f7bca34c1062ab83f03dd49 (patch) | |
tree | e1d90e9c6664f2d1de4f6e16011837fad5b091ea | |
parent | ac7190349c5a9d1d87d1d12a84e83ef0708f2531 (diff) |
Simplify a regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 8 |
1 files 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) |