mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/testunit/test_parallel.rb (TestParallel::TestParallelWorker#
setup): now can run on Windows, probably. * test/testunit/test_parallel.rb (TestParallel::TestParalle#setup): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8bdd28d10
commit
72e8077957
2 changed files with 8 additions and 10 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Thu Jun 16 03:08:11 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/testunit/test_parallel.rb (TestParallel::TestParallelWorker#
|
||||||
|
setup): now can run on Windows, probably.
|
||||||
|
|
||||||
|
* test/testunit/test_parallel.rb (TestParallel::TestParalle#setup):
|
||||||
|
ditto.
|
||||||
|
|
||||||
Thu Jun 16 03:00:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
Thu Jun 16 03:00:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* thread.c (do_select): Windows: no need to poll if select(2) is
|
* thread.c (do_select): Windows: no need to poll if select(2) is
|
||||||
|
|
|
@ -8,10 +8,6 @@ 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,
|
||||||
|
@ -123,12 +119,6 @@ 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…
Add table
Add a link
Reference in a new issue