summaryrefslogtreecommitdiff
path: root/test/ruby/test_thread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r--test/ruby/test_thread.rb3
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