From afa3ce2518feafcb412a2f007be8e08900ef26ef Mon Sep 17 00:00:00 2001 From: tarui Date: Tue, 4 Dec 2012 19:06:46 +0000 Subject: * 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 --- test/ruby/test_thread.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_thread.rb') 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 -- cgit v1.2.3