mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02: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:
parent
c0eb5bb6f2
commit
d9c31a6787
1 changed files with 5 additions and 2 deletions
|
@ -328,14 +328,17 @@ class TestRubyOptions < Test::Unit::TestCase
|
||||||
def test_segv_test
|
def test_segv_test
|
||||||
assert_in_out_err(["-e", "Process.kill :SEGV, $$"], "", [],
|
assert_in_out_err(["-e", "Process.kill :SEGV, $$"], "", [],
|
||||||
%r(\A
|
%r(\A
|
||||||
-e:1:\s\[BUG\]\sSegmentation\sfault\n
|
-e:(?:1:)?\s\[BUG\]\sSegmentation\sfault\n
|
||||||
#{ Regexp.quote(RUBY_DESCRIPTION) }\n\n
|
#{ Regexp.quote(RUBY_DESCRIPTION) }\n\n
|
||||||
--\scontrol\sframe\s----------\n
|
--\scontrol\sframe\s----------\n
|
||||||
(?:c:.*\n)*
|
(?:c:.*\n)*
|
||||||
|
(?:
|
||||||
---------------------------\n
|
---------------------------\n
|
||||||
--\sRuby\slevel\sbacktrace\sinformation\s----------------------------------------\n
|
--\sRuby\slevel\sbacktrace\sinformation\s----------------------------------------\n
|
||||||
-e:1:in\s`<main>'\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
|
--\sC\slevel\sbacktrace\sinformation\s-------------------------------------------\n
|
||||||
(?:(?:.*\s)?\[0x\h+\]\n)*\n
|
(?:(?:.*\s)?\[0x\h+\]\n)*\n
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue