This commit is contained in:
Hiroshi SHIBATA 2025-07-01 16:57:26 +09:00
parent a52a2e852a
commit 7fb19cf803

View File

@ -1460,6 +1460,7 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status|
end
def test_detailed_message_under_gc_compact_stress
omit "compaction doesn't work well on s390x" if RUBY_PLATFORM =~ /s390x/ # https://github.com/ruby/ruby/pull/5077
EnvUtil.under_gc_compact_stress do
e = RuntimeError.new("foo\nbar\nbaz")
assert_equal("foo (RuntimeError)\nbar\nbaz", e.detailed_message)