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

Fix rb_bug message pattern list

Each setions are separated by an empty line, and C level backtrace
information format has been changed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-02-13 11:36:15 +00:00
parent c6a2de3029
commit 00679d202d

View file

@ -669,7 +669,7 @@ class TestRubyOptions < Test::Unit::TestCase
module SEGVTest module SEGVTest
opts = {} opts = {}
if /mswin|mingw/ =~ RUBY_PLATFORM if /mswin|mingw|darwin/ =~ RUBY_PLATFORM
additional = /[\s\w\.\']*/ additional = /[\s\w\.\']*/
else else
opts[:rlimit_core] = 0 opts[:rlimit_core] = 0
@ -688,21 +688,32 @@ class TestRubyOptions < Test::Unit::TestCase
(?:--\s(?:.+\n)*\n)? (?:--\s(?:.+\n)*\n)?
--\sControl\sframe\sinformation\s-+\n --\sControl\sframe\sinformation\s-+\n
(?:c:.*\n)* (?:c:.*\n)*
\n
)x, )x,
%r( %r(
(?: (?:
--\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 -e:1:in\s\`kill\'\n
\n
)? )?
)x, )x,
%r(
(?:--\sMachine(?:.+\n)*\n)?
)x,
%r( %r(
(?: (?:
--\sC\slevel\sbacktrace\sinformation\s-------------------------------------------\n --\sC\slevel\sbacktrace\sinformation\s-------------------------------------------\n
(?:(?:.*\s)?\[0x\h+\]\n)*\n (?:(?:.*\s)?\[0x\h+\].*\n|.*:\d+\n)*\n
)?
)x,
%r(
(?:--\sOther\sruntime\sinformation\s-+\n
(?:\n\*\s.*\n
(?:\n(?:\s.*\n)+)?
)*
)? )?
)x, )x,
:*,
] ]
ExpectedStderrList << additional if additional ExpectedStderrList << additional if additional
end end