From 38ade501405d713b1f02ae02d9c359d5a4f0122c Mon Sep 17 00:00:00 2001 From: sorah Date: Sun, 25 Dec 2011 14:17:28 +0000 Subject: [PATCH] * test/testunit/test_parallel.rb (test_separate): Test for "--separate" option (r34121) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/testunit/test_parallel.rb | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index d498d3b6fc..4fef4df53e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Dec 25 23:16:11 2011 Shota Fukumori + + * test/testunit/test_parallel.rb (test_separate): Test for "--separate" + option (r34121) + Sun Dec 25 22:39:49 2011 Shota Fukumori * lib/test/unit.rb (_run_parallel): diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb index bce1d869c5..5f7655bc72 100644 --- a/test/testunit/test_parallel.rb +++ b/test/testunit/test_parallel.rb @@ -177,5 +177,11 @@ module TestParallel assert_match(/\d+=ptest_(first|second|third|forth) */,buf) end + def test_separate + # this test depends to --jobs-status + spawn_runner "--jobs-status", "--separate" + buf = timeout(10){@test_out.read} + assert(buf.scan(/(\d+?)[:=]/).flatten.uniq.size > 1) + end end end