summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_rubyoptions.rb7
1 files changed, 5 insertions, 2 deletions
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`<main>'\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