mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress exception report in inner thread
This commit is contained in:
parent
57eaa07ba6
commit
edbe0e224c
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ class TestFiberThread < Test::Unit::TestCase
|
|||
Fiber.set_scheduler scheduler
|
||||
|
||||
Fiber.schedule do
|
||||
Thread.new{}.join
|
||||
Thread.new{
|
||||
Thread.current.report_on_exception = false
|
||||
}.join
|
||||
end
|
||||
|
||||
scheduler.run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue