mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* lib/test/unit/parallel.rb: For Windows.
* test/testunit/test_parallel.rb(TestParallelWorker#test_quit_in_test): Fix for above specification change. * test/testunit/test_parallel.rb(TestParallel#spawn_runner): Fix outputing empty line in running test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af3e36158f
commit
0a9442983d
3 changed files with 31 additions and 41 deletions
|
@ -117,14 +117,6 @@ module TestParallel
|
|||
assert_match(/^bye$/m,@worker_out.read)
|
||||
end
|
||||
end
|
||||
|
||||
def test_quit_in_test
|
||||
timeout(10) do
|
||||
@worker_in.puts "run #{TESTS}/test_third.rb ptest"
|
||||
@worker_in.puts "quit"
|
||||
assert_match(/^ready\nokay\nbye/m,@worker_out.read)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class TestParallel < Test::Unit::TestCase
|
||||
|
@ -137,7 +129,7 @@ module TestParallel
|
|||
def spawn_runner(*opt_args)
|
||||
@test_out, o = IO.pipe
|
||||
@test_pid = spawn(*@options[:ruby], TESTS+"/runner.rb",
|
||||
"-j","t2","-x","sleeping",*opt_args, out: o)
|
||||
"-j","t2","-x","sleeping",*opt_args, out: o, err: :out)
|
||||
o.close
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue