diff options
-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) |