1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2012-08-21 00:07:32 +00:00
parent c50c1a0064
commit ba661182a4
3 changed files with 19 additions and 5 deletions

View file

@ -1,3 +1,11 @@
Tue Aug 21 09:05:32 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* 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]
Tue Aug 21 05:43:00 2012 James Edward Gray II <james@graysoftinc.com>
* lib/csv.rb: Fixes #161 on github

View file

@ -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

View file

@ -1,6 +1,8 @@
require 'test/unit'
class TestE < Test::Unit::TestCase
class UnknownError < RuntimeError; end
def test_not_fail
assert_equal(1,1)
end
@ -12,5 +14,8 @@ class TestE < Test::Unit::TestCase
def test_always_fail
assert_equal(0,1)
end
end
def test_unknown_error
raise UnknownError, "unknown error"
end
end