diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 18:44:07 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-12 18:44:07 +0000 |
commit | 2dfbc64fab124dba4416357736c22c9cadbe3c49 (patch) | |
tree | 94d1cfdee5569d8e8373a74ed46bed2a16148e1a /test/rinda | |
parent | ca1c3d41fa62bf15856a1c31156b60862616b3fa (diff) |
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
Diffstat (limited to 'test/rinda')
-rw-r--r-- | test/rinda/test_rinda.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |