1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

More generic regular exression for test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-02-15 09:00:34 +00:00
parent c0eb5bb6f2
commit d9c31a6787

View file

@ -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