summaryrefslogtreecommitdiff
path: root/test/testunit
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-25 14:17:28 +0000
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-25 14:17:28 +0000
commit38ade501405d713b1f02ae02d9c359d5a4f0122c (patch)
treea76fa9865caf39e9f7f39d4073ff9a1454e023c5 /test/testunit
parent60da7a36f52bc1d558aa1ed44090259c37ac7bd4 (diff)
* 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.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb
index bce1d86..5f7655b 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