1
0
Fork 0
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:
akr 2007-12-15 16:29:26 +00:00
parent 6ac2742afa
commit bcf4a9947d

View file

@ -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]'