Join threads.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bbfe069ec1
commit
59ae4924b0
@ -32,6 +32,9 @@ class DRbService
|
|||||||
manager.service(name)
|
manager.service(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
def self.finish
|
||||||
|
@server.instance_variable_get(:@grp).list.each {|th| th.join }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Onecky
|
class Onecky
|
||||||
@ -193,10 +196,6 @@ module DRbCore
|
|||||||
assert_raise(TimeoutError) do
|
assert_raise(TimeoutError) do
|
||||||
@there.do_timeout(ten)
|
@there.do_timeout(ten)
|
||||||
end
|
end
|
||||||
ensure
|
|
||||||
DRbService.server.instance_variable_get(:@grp).list.each do |th|
|
|
||||||
th.kill.join
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_07_public_private_protected_missing
|
def test_07_public_private_protected_missing
|
||||||
|
@ -9,6 +9,11 @@ class TestDRbCore < Test::Unit::TestCase
|
|||||||
setup_service 'ut_drb.rb'
|
setup_service 'ut_drb.rb'
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestDRbYield < Test::Unit::TestCase
|
class TestDRbYield < Test::Unit::TestCase
|
||||||
@ -19,6 +24,11 @@ class TestDRbYield < Test::Unit::TestCase
|
|||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
|
|
||||||
def test_01_one
|
def test_01_one
|
||||||
@there.echo_yield_1([]) {|one|
|
@there.echo_yield_1([]) {|one|
|
||||||
assert_equal([], one)
|
assert_equal([], one)
|
||||||
@ -187,6 +197,11 @@ class TestDRbAry < Test::Unit::TestCase
|
|||||||
setup_service 'ut_array.rb'
|
setup_service 'ut_array.rb'
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestDRbMServer < Test::Unit::TestCase
|
class TestDRbMServer < Test::Unit::TestCase
|
||||||
@ -205,6 +220,7 @@ class TestDRbMServer < Test::Unit::TestCase
|
|||||||
s.stop_service
|
s.stop_service
|
||||||
end
|
end
|
||||||
super
|
super
|
||||||
|
DRbService.finish
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_01
|
def test_01
|
||||||
@ -216,6 +232,11 @@ class TestDRbSafe1 < TestDRbAry
|
|||||||
def setup
|
def setup
|
||||||
setup_service 'ut_safe1.rb'
|
setup_service 'ut_safe1.rb'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestDRbEval # < Test::Unit::TestCase
|
class TestDRbEval # < Test::Unit::TestCase
|
||||||
@ -275,6 +296,11 @@ class TestDRbLarge < Test::Unit::TestCase
|
|||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
|
|
||||||
def test_01_large_ary
|
def test_01_large_ary
|
||||||
ary = [2] * 10240
|
ary = [2] * 10240
|
||||||
assert_equal(10240, @there.size(ary))
|
assert_equal(10240, @there.size(ary))
|
||||||
@ -317,6 +343,11 @@ class TestBug4409 < Test::Unit::TestCase
|
|||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
|
|
||||||
def test_bug4409
|
def test_bug4409
|
||||||
foo = @there.foo
|
foo = @there.foo
|
||||||
assert(@there.foo?(foo))
|
assert(@there.foo?(foo))
|
||||||
|
@ -42,6 +42,11 @@ class TestDRbSSLCore < Test::Unit::TestCase
|
|||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
|
|
||||||
def test_02_unknown
|
def test_02_unknown
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -58,6 +63,11 @@ class TestDRbSSLAry < Test::Unit::TestCase
|
|||||||
setup_service 'ut_array_drbssl.rb'
|
setup_service 'ut_array_drbssl.rb'
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,6 +26,11 @@ class TestDRbUNIXCore < Test::Unit::TestCase
|
|||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
|
|
||||||
def test_02_unknown
|
def test_02_unknown
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -42,6 +47,10 @@ class TestDRbUNIXAry < Test::Unit::TestCase
|
|||||||
setup_service 'ut_array_drbunix.rb'
|
setup_service 'ut_array_drbunix.rb'
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
def teardown
|
||||||
|
super
|
||||||
|
DRbService.finish
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user