mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Partly picked from https://github.com/ruby/ruby/pull/10073
This commit is contained in:
parent
a52a2e852a
commit
7fb19cf803
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user