diff options
author | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-25 14:17:28 +0000 |
---|---|---|
committer | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-25 14:17:28 +0000 |
commit | 38ade501405d713b1f02ae02d9c359d5a4f0122c (patch) | |
tree | a76fa9865caf39e9f7f39d4073ff9a1454e023c5 /test/testunit | |
parent | 60da7a36f52bc1d558aa1ed44090259c37ac7bd4 (diff) | |
download | ruby-38ade501405d713b1f02ae02d9c359d5a4f0122c.tar.gz |
* 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
Diffstat (limited to 'test/testunit')
-rw-r--r-- | test/testunit/test_parallel.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |