summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-15 09:00:34 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-15 09:00:34 +0000
commitd9c31a67875f5c892a156f2fd80fe4ad2f9f0f2c (patch)
tree6c9372b4a61cd1115a939f8b60a5e3f48467fe02 /test
parentc0eb5bb6f2f5d7ef282c44b80f36fe7168aa4628 (diff)
More generic regular exression for test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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