mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 22 additions and 6 deletions
|
@ -8,6 +8,10 @@ module TestParallel
|
|||
|
||||
class TestParallelWorker < Test::Unit::TestCase
|
||||
def setup
|
||||
if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
|
||||
skip "parallel testing doesn't support Windows yet."
|
||||
end
|
||||
|
||||
i, @worker_in = IO.pipe
|
||||
@worker_out, o = IO.pipe
|
||||
@worker_pid = spawn(*@options[:ruby], PARALLEL_RB,
|
||||
|
@ -16,13 +20,15 @@ module TestParallel
|
|||
end
|
||||
|
||||
def teardown
|
||||
begin
|
||||
@worker_in.puts "quit"
|
||||
timeout(2) do
|
||||
Process.waitpid(@worker_pid)
|
||||
if @worker_pid && @worker_in
|
||||
begin
|
||||
@worker_in.puts "quit"
|
||||
timeout(2) do
|
||||
Process.waitpid(@worker_pid)
|
||||
end
|
||||
rescue IOError, Errno::EPIPE, Timeout::Error
|
||||
Process.kill(:KILL, @worker_pid)
|
||||
end
|
||||
rescue IOError, Errno::EPIPE, Timeout::Error
|
||||
Process.kill(:KILL, @worker_pid)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -122,6 +128,12 @@ module TestParallel
|
|||
end
|
||||
|
||||
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)
|
||||
@test_out, o = IO.pipe
|
||||
@test_pid = spawn(*@options[:ruby], TESTS+"/runner.rb",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue