diff options
author | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-04 19:06:46 +0000 |
---|---|---|
committer | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-04 19:06:46 +0000 |
commit | afa3ce2518feafcb412a2f007be8e08900ef26ef (patch) | |
tree | 55c1173fa7b94278ac0c717fdea3908e62e18a74 /test/ruby | |
parent | 64f634f1de8581e398843b2f178827dbcaa90a30 (diff) | |
download | ruby-afa3ce2518feafcb412a2f007be8e08900ef26ef.tar.gz |
* test/ruby/test_thread.rb (test_async_interrupt_blocking): bugfix
about defared check
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_thread.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 52ac8980a7..bff34b3b25 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -565,7 +565,7 @@ class TestThread < Test::Unit::TestCase end def test_async_interrupt_blocking - r=:ok + r=:ng e=Class.new(Exception) th_s = Thread.current begin @@ -573,6 +573,7 @@ class TestThread < Test::Unit::TestCase Thread.async_interrupt_timing(Object => :on_blocking){ begin Thread.current.raise RuntimeError + r=:ok sleep ensure th_s.raise e |