* test/testunit/test_parallel.rb: Temporally disable test on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1fa29a76a7
commit
18c34c6c92
@ -1,3 +1,7 @@
|
|||||||
|
Mon Feb 28 11:57:40 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
|
* test/testunit/test_parallel.rb: Temporally disable test on Windows.
|
||||||
|
|
||||||
Mon Feb 28 07:28:35 2011 Shota Fukumori <sorah@tubusu.net>
|
Mon Feb 28 07:28:35 2011 Shota Fukumori <sorah@tubusu.net>
|
||||||
|
|
||||||
* lib/test/unit.rb(Test::Unit::Runner#after_worker_quit):
|
* lib/test/unit.rb(Test::Unit::Runner#after_worker_quit):
|
||||||
|
@ -8,6 +8,10 @@ module TestParallel
|
|||||||
|
|
||||||
class TestParallelWorker < Test::Unit::TestCase
|
class TestParallelWorker < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
|
||||||
|
skip "parallel testing doesn't support Windows yet."
|
||||||
|
end
|
||||||
|
|
||||||
i, @worker_in = IO.pipe
|
i, @worker_in = IO.pipe
|
||||||
@worker_out, o = IO.pipe
|
@worker_out, o = IO.pipe
|
||||||
@worker_pid = spawn(*@options[:ruby], PARALLEL_RB,
|
@worker_pid = spawn(*@options[:ruby], PARALLEL_RB,
|
||||||
@ -16,6 +20,7 @@ module TestParallel
|
|||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
if @worker_pid && @worker_in
|
||||||
begin
|
begin
|
||||||
@worker_in.puts "quit"
|
@worker_in.puts "quit"
|
||||||
timeout(2) do
|
timeout(2) do
|
||||||
@ -25,6 +30,7 @@ module TestParallel
|
|||||||
Process.kill(:KILL, @worker_pid)
|
Process.kill(:KILL, @worker_pid)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_run
|
def test_run
|
||||||
timeout(10) do
|
timeout(10) do
|
||||||
@ -122,6 +128,12 @@ module TestParallel
|
|||||||
end
|
end
|
||||||
|
|
||||||
class TestParallel < Test::Unit::TestCase
|
class TestParallel < Test::Unit::TestCase
|
||||||
|
def setup
|
||||||
|
if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
|
||||||
|
skip "parallel testing doesn't support Windows yet."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def spawn_runner(*opt_args)
|
def spawn_runner(*opt_args)
|
||||||
@test_out, o = IO.pipe
|
@test_out, o = IO.pipe
|
||||||
@test_pid = spawn(*@options[:ruby], TESTS+"/runner.rb",
|
@test_pid = spawn(*@options[:ruby], TESTS+"/runner.rb",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user