From ba661182a40a486f089e63889897ab98d9db85b5 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 21 Aug 2012 00:07:32 +0000 Subject: * test/testunit/tests_for_parallel/ptest_forth.rb: added a test case which causes an error. * test/testunit/test_parallel.rb: follow above change. see [Bug #6882] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/testunit/test_parallel.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/testunit/test_parallel.rb') diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb index 9d1bc57b7f..00883e93c7 100644 --- a/test/testunit/test_parallel.rb +++ b/test/testunit/test_parallel.rb @@ -91,7 +91,7 @@ module TestParallel timeout(10) do @worker_in.puts "run #{TESTS}/ptest_forth.rb test" i = 0 - 5.times { @worker_out.gets } + 6.times { @worker_out.gets } buf = @worker_out.gets assert_match(/^done (.+?)$/, buf) @@ -99,14 +99,15 @@ module TestParallel result = Marshal.load($1.chomp.unpack("m")[0]) - assert_equal(result[0],3) - assert_equal(result[1],2) + assert_equal(4, result[0]) + assert_equal(2, result[1]) assert_kind_of(Array,result[2]) assert_kind_of(Array,result[3]) assert_kind_of(Array,result[4]) assert_kind_of(Array,result[2][1]) assert_kind_of(MiniTest::Assertion,result[2][0][2]) assert_kind_of(MiniTest::Skip,result[2][1][2]) + assert_kind_of(Exception, result[2][2][2]) assert_equal(result[5], "TestE") end end @@ -156,7 +157,7 @@ module TestParallel def test_should_run_all_without_any_leaks spawn_runner buf = timeout(10){@test_out.read} - assert_match(/^[SF\.]{7}$/,buf) + assert_match(/^[SFE\.]{8}$/,buf) end def test_should_retry_failed_on_workers -- cgit v1.2.3