From 3eb802fb562cbb29ec1ede64f6df70719fc8f144 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 19 Mar 2025 14:57:15 +0900 Subject: 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 --- test/ruby/test_rubyoptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index c56577228a..2e6b370f5b 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -789,7 +789,7 @@ class TestRubyOptions < Test::Unit::TestCase ExpectedStderrList = [ %r( - -e:(?:1:)?\s\[BUG\]\sSegmentation\sfault.*\n + \[BUG\]\sSegmentation\sfault.*\n )x, %r( #{ Regexp.quote(RUBY_DESCRIPTION) }\n\n -- cgit v1.2.3