diff options
author | Yusuke Endoh <[email protected]> | 2025-03-19 14:57:15 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2025-03-19 14:57:15 +0900 |
commit | 3eb802fb562cbb29ec1ede64f6df70719fc8f144 (patch) | |
tree | 5b1cb2a44235c862615ccbc54569797973620498 | |
parent | e391c3373472d3f23b02301782315567aebd6c87 (diff) |
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
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |