mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
dd32962cba
commit
ea75767010
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed May 26 18:40:23 2010 Masaya Tarui <tarui@ruby-lang.org>
|
||||
|
||||
* test/rinda/test_rinda.rb (class TupleSpaceTest): kill a used thread
|
||||
at teardown. [ruby-dev:41397]
|
||||
* test/rinda/test_rinda.rb (class TupleSpaceProxyTest): ditto.
|
||||
|
||||
Wed May 26 12:08:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* random.c (random_rand): subtraction method of non-numeric can
|
||||
|
|
|
@ -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]))
|
||||
|
|
Loading…
Add table
Reference in a new issue