aboutsummaryrefslogtreecommitdiffstats
path: root/test/rinda
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-26 09:45:49 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-26 09:45:49 +0000
commitea757670107a3143d72e4f00480a71439e211b5c (patch)
tree261cb6a2c93686139d4b35958345ed5f1a81e780 /test/rinda
parentdd32962cba378b8762b33e8111d104a958ff296f (diff)
downloadruby-ea757670107a3143d72e4f00480a71439e211b5c.tar.gz
* test/rinda/test_rinda.rb (class TupleSpaceTest): kill a used thread
at teardown. [ruby-dev:41397] * test/rinda/test_rinda.rb (class TupleSpaceProxyTest): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rinda')
-rw-r--r--test/rinda/test_rinda.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index 0d94cf70da..b69b63ac78 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -519,6 +519,10 @@ class TupleSpaceTest < Test::Unit::TestCase
ThreadGroup.new.add(Thread.current)
@ts = Rinda::TupleSpace.new(1)
end
+ def teardown
+ # implementation-dependent
+ @ts.instance_eval{@keeper.kill if @keeper}
+ end
end
class TupleSpaceProxyTest < Test::Unit::TestCase
@@ -529,6 +533,10 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
@ts_base = Rinda::TupleSpace.new(1)
@ts = Rinda::TupleSpaceProxy.new(@ts_base)
end
+ def teardown
+ # implementation-dependent
+ @ts_base.instance_eval{@keeper.kill if @keeper}
+ end
def test_remote_array_and_hash
@ts.write(DRbObject.new([1, 2, 3]))