mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
wait until it escape handle_interrupt block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c621f4712f
commit
d90f9b1481
1 changed files with 2 additions and 2 deletions
|
@ -646,8 +646,8 @@ class TestThread < Test::Unit::TestCase
|
|||
end
|
||||
}
|
||||
}
|
||||
assert_raise(e) {r = :wait; sleep 1}
|
||||
assert_raise(RuntimeError) {th.join(0)}
|
||||
assert_raise(e) {r = :wait; sleep 0.2}
|
||||
assert_raise(RuntimeError) {th.join(0.2)}
|
||||
ensure
|
||||
th.kill
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue