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

* test/testunit/tests_for_parallel/test_third.rb: Use Test::Unit::TestCase#on_parallel_worker? for detecting worker. * lib/test/unit/testcase.rb(Test::Unit::TestCase#on_parallel_worker?): New Method Test::Unit::TestCase#on_parallel_worker? returns true when a testcase is running on parallel worker. * lib/test/unit/parallel.rb(Test::Unit::TestCase#on_parallel_worker?): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11 lines
223 B
Ruby
11 lines
223 B
Ruby
require 'test/unit'
|
|
require_relative "misc.rb"
|
|
|
|
class TestD < TestCaseForParallelTest
|
|
def ptest_fail_at_worker
|
|
#if /test\/unit\/parallel\.rb/ =~ $0
|
|
if on_parallel_worker?
|
|
assert_equal(0,1)
|
|
end
|
|
end
|
|
end
|