From 2dfbc64fab124dba4416357736c22c9cadbe3c49 Mon Sep 17 00:00:00 2001 From: eregon Date: Tue, 12 Dec 2017 18:44:07 +0000 Subject: Rescue expected Interrupt in TupleSpaceTestModule#test_take_bug_8215 * test/rinda/test_rinda.rb (test_take_bug_8215): add rescue for expected exception, which removes the warning by Thread.report_on_exception [Feature #14143]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rinda/test_rinda.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/rinda') diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index 471b0dec58..ddebe54baa 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -504,6 +504,8 @@ class TupleSpaceProxyTest < Test::Unit::TestCase ts = Rinda::TupleSpaceProxy.new(ro) th = Thread.new do ts.take([:test_take, nil]) + rescue Interrupt + # Expected end Kernel.sleep(0.1) th.raise(Interrupt) # causes loss of the taken tuple -- cgit v1.2.3