mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add test for [ruby-dev:32608].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6ac2742afa
commit
bcf4a9947d
1 changed files with 17 additions and 0 deletions
|
@ -176,3 +176,20 @@ assert_normal_exit %q{
|
|||
}
|
||||
Thread.new { GC.start }.join
|
||||
}, '[ruby-dev:32604]'
|
||||
|
||||
assert_equal 'nil', %q{
|
||||
doit = false
|
||||
exc = nil
|
||||
t = Thread.new {
|
||||
begin
|
||||
doit = true
|
||||
sleep 10
|
||||
ensure
|
||||
exc = $!
|
||||
end
|
||||
}
|
||||
Thread.pass until doit
|
||||
t.kill
|
||||
t.join
|
||||
exc.inspect
|
||||
}, '[ruby-dev:32608]'
|
||||
|
|
Loading…
Reference in a new issue