aboutsummaryrefslogtreecommitdiffstats
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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 52e6d67560..63921bb2da 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -669,8 +669,8 @@ class TestThread < Test::Unit::TestCase
q.push :ng1
end
begin
- Thread.handle_interrupthandle_interrupt(Object => :immediate){} if Thread.pending_interrupt?
- rescue => e
+ Thread.handle_interrupt(Object => :immediate){} if Thread.pending_interrupt?
+ rescue RuntimeError => e
q.push :ok
end
rescue => e