diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 47a81074a6..ff1b5da672 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -328,14 +328,17 @@ class TestRubyOptions < Test::Unit::TestCase def test_segv_test assert_in_out_err(["-e", "Process.kill :SEGV, $$"], "", [], %r(\A - -e:1:\s\[BUG\]\sSegmentation\sfault\n + -e:(?:1:)?\s\[BUG\]\sSegmentation\sfault\n #{ Regexp.quote(RUBY_DESCRIPTION) }\n\n --\scontrol\sframe\s----------\n (?:c:.*\n)* + (?: ---------------------------\n --\sRuby\slevel\sbacktrace\sinformation\s----------------------------------------\n -e:1:in\s`
'\n - -e:1:in\s`kill'\n\n + -e:1:in\s`kill'\n + )? + \n (?: --\sC\slevel\sbacktrace\sinformation\s-------------------------------------------\n (?:(?:.*\s)?\[0x\h+\]\n)*\n