Fix regexp when non-ruby thread received the signal

A space is added only when the source path is found.
This commit is contained in:
Nobuyoshi Nakada 2025-03-21 15:17:15 +09:00
parent edabdd95a8
commit d868922ea8
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465

View file

@ -791,7 +791,7 @@ class TestRubyOptions < Test::Unit::TestCase
# see assert_pattern_list
ExpectedStderrList = [
%r(
(?:-e:(?:1:)?)?\s\[BUG\]\sSegmentation\sfault.*\n
(?:-e:(?:1:)?\s)?\[BUG\]\sSegmentation\sfault.*\n
)x,
%r(
#{ Regexp.quote(RUBY_DESCRIPTION) }\n\n