diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-15 16:29:26 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-15 16:29:26 +0000 |
commit | bcf4a9947daab5750fde75a0d7c97cb27accc45d (patch) | |
tree | 578fd728a31c42514ca25228f3c093ee470fd7af /bootstraptest | |
parent | 6ac2742afacf9fd7c9a378d1bbadcf9b730bfbef (diff) | |
download | ruby-bcf4a9947daab5750fde75a0d7c97cb27accc45d.tar.gz |
add test for [ruby-dev:32608].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_knownbug.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index c6063cdff5..edead3e75d 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -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]' |