Skip to content

Commit 3eb802f

Browse files
committed
Loosen SEGV message testing
Since `rb_bug` does not always take Ruby frame info during SEGV, the source file path may not be output. ``` 1) Failure: TestRubyOptions#test_crash_report_script [/tmp/ruby/src/trunk_gcc11/test/ruby/test_rubyoptions.rb:907]: Expected / bug\.rb:(?:1:)?\s\[BUG\]\sSegmentation\sfault.*\n /x to match "[BUG] Segmentation fault at 0x000003e900328766\n"+ ``` http://ci.rvm.jp/results/trunk_gcc11@ruby-sp2-noble-docker/5663880
1 parent e391c33 commit 3eb802f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ruby/test_rubyoptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ module SEGVTest
789789

790790
ExpectedStderrList = [
791791
%r(
792-
-e:(?:1:)?\s\[BUG\]\sSegmentation\sfault.*\n
792+
\[BUG\]\sSegmentation\sfault.*\n
793793
)x,
794794
%r(
795795
#{ Regexp.quote(RUBY_DESCRIPTION) }\n\n

0 commit comments

Comments
 (0)