Rename test classes to allow stable test count when running test-all -j
[Fix GH-1763] From: MSP-Greg <MSP-Greg@users.noreply.github.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1032f093cc
commit
dd3851d278
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require '-test-/array/resize'
|
require '-test-/array/resize'
|
||||||
|
|
||||||
class TestArray < Test::Unit::TestCase
|
class Test_Array < Test::Unit::TestCase
|
||||||
class TestResize < Test::Unit::TestCase
|
class TestResize < Test::Unit::TestCase
|
||||||
def test_expand
|
def test_expand
|
||||||
feature = '[ruby-dev:42912]'
|
feature = '[ruby-dev:42912]'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/bignum"
|
require "-test-/bignum"
|
||||||
|
|
||||||
class TestBignum < Test::Unit::TestCase
|
class Test_Bignum < Test::Unit::TestCase
|
||||||
class TestBig2str < Test::Unit::TestCase
|
class TestBig2str < Test::Unit::TestCase
|
||||||
|
|
||||||
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/bignum"
|
require "-test-/bignum"
|
||||||
|
|
||||||
class TestBignum < Test::Unit::TestCase
|
class Test_Bignum < Test::Unit::TestCase
|
||||||
class TestBigZero < Test::Unit::TestCase
|
class TestBigZero < Test::Unit::TestCase
|
||||||
def test_equal_0
|
def test_equal_0
|
||||||
bug8204 = '[ruby-core:53893] [Bug #8204]'
|
bug8204 = '[ruby-core:53893] [Bug #8204]'
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/bignum"
|
require "-test-/bignum"
|
||||||
|
|
||||||
class TestBignum < Test::Unit::TestCase
|
class Test_Bignum < Test::Unit::TestCase
|
||||||
class TestDiv < Test::Unit::TestCase
|
class TestDiv < Test::Unit::TestCase
|
||||||
|
|
||||||
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/bignum"
|
require "-test-/bignum"
|
||||||
|
|
||||||
class TestBignum < Test::Unit::TestCase
|
class Test_Bignum < Test::Unit::TestCase
|
||||||
class TestMul < Test::Unit::TestCase
|
class TestMul < Test::Unit::TestCase
|
||||||
|
|
||||||
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/bignum"
|
require "-test-/bignum"
|
||||||
|
|
||||||
class TestBignum < Test::Unit::TestCase
|
class Test_Bignum < Test::Unit::TestCase
|
||||||
class TestPack < Test::Unit::TestCase
|
class TestPack < Test::Unit::TestCase
|
||||||
|
|
||||||
MSWORD_FIRST = Integer::INTEGER_PACK_MSWORD_FIRST
|
MSWORD_FIRST = Integer::INTEGER_PACK_MSWORD_FIRST
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/bignum"
|
require "-test-/bignum"
|
||||||
|
|
||||||
class TestBignum < Test::Unit::TestCase
|
class Test_Bignum < Test::Unit::TestCase
|
||||||
class TestStr2big < Test::Unit::TestCase
|
class TestStr2big < Test::Unit::TestCase
|
||||||
|
|
||||||
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
module Bug
|
module Bug
|
||||||
class TestException < Test::Unit::TestCase
|
class Test_ExceptionDE < Test::Unit::TestCase
|
||||||
def test_cleanup_data_error
|
def test_cleanup_data_error
|
||||||
bug9167 = '[ruby-core:58643] [Bug #9167]'
|
bug9167 = '[ruby-core:58643] [Bug #9167]'
|
||||||
assert_normal_exit(<<-'end;', bug9167) # do
|
assert_normal_exit(<<-'end;', bug9167) # do
|
||||||
|
@ -3,7 +3,7 @@ require 'test/unit'
|
|||||||
require '-test-/exception'
|
require '-test-/exception'
|
||||||
|
|
||||||
module Bug
|
module Bug
|
||||||
class TestException < Test::Unit::TestCase
|
class Test_ExceptionER < Test::Unit::TestCase
|
||||||
def test_enc_raise
|
def test_enc_raise
|
||||||
feature5650 = '[ruby-core:41160]'
|
feature5650 = '[ruby-core:41160]'
|
||||||
Encoding.list.each do |enc|
|
Encoding.list.each do |enc|
|
||||||
|
@ -5,7 +5,7 @@ module Bug
|
|||||||
class Bug7802 < RuntimeError
|
class Bug7802 < RuntimeError
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestException < Test::Unit::TestCase
|
class Test_ExceptionE < Test::Unit::TestCase
|
||||||
def test_ensured
|
def test_ensured
|
||||||
assert_separately([], <<-'end;') # do
|
assert_separately([], <<-'end;') # do
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
module Bug
|
module Bug
|
||||||
class TestException < Test::Unit::TestCase
|
class Test_ExceptionAT < Test::Unit::TestCase
|
||||||
def test_exception_at_throwing
|
def test_exception_at_throwing
|
||||||
assert_separately(%w[-r-test-/exception], "#{<<-"begin;"}\n#{<<-"end;"}")
|
assert_separately(%w[-r-test-/exception], "#{<<-"begin;"}\n#{<<-"end;"}")
|
||||||
begin;
|
begin;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require '-test-/hash'
|
require '-test-/hash'
|
||||||
|
|
||||||
class TestHash < Test::Unit::TestCase
|
class Test_Hash < Test::Unit::TestCase
|
||||||
class TestDelete < Test::Unit::TestCase
|
class TestDelete < Test::Unit::TestCase
|
||||||
def test_delete
|
def test_delete
|
||||||
hash = Bug::Hash.new
|
hash = Bug::Hash.new
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require '-test-/integer'
|
require '-test-/integer'
|
||||||
|
|
||||||
class TestInteger < Test::Unit::TestCase
|
class Test_Integer < Test::Unit::TestCase
|
||||||
FIXNUM_MIN = RbConfig::LIMITS['FIXNUM_MIN']
|
FIXNUM_MIN = RbConfig::LIMITS['FIXNUM_MIN']
|
||||||
FIXNUM_MAX = RbConfig::LIMITS['FIXNUM_MAX']
|
FIXNUM_MAX = RbConfig::LIMITS['FIXNUM_MAX']
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/integer"
|
require "-test-/integer"
|
||||||
|
|
||||||
class TestIntegerExt < Test::Unit::TestCase
|
class Test_MyInteger < Test::Unit::TestCase
|
||||||
def test_my_integer_to_f
|
def test_my_integer_to_f
|
||||||
assert_raise(NotImplementedError) do
|
assert_raise(NotImplementedError) do
|
||||||
Bug::Integer::MyInteger.new.to_f
|
Bug::Integer::MyInteger.new.to_f
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require '-test-/method'
|
require '-test-/method'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
class TestMethod < Test::Unit::TestCase
|
class Test_Method < Test::Unit::TestCase
|
||||||
class TestArity < Test::Unit::TestCase
|
class TestArity < Test::Unit::TestCase
|
||||||
class A
|
class A
|
||||||
def foo0()
|
def foo0()
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require '-test-/proc'
|
require '-test-/proc'
|
||||||
|
|
||||||
class TestProc < Test::Unit::TestCase
|
class Test_Proc < Test::Unit::TestCase
|
||||||
class TestBMethod < Test::Unit::TestCase
|
class TestBMethod < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestProc::TestBMethod
|
class Test_Proc::TestBMethod
|
||||||
class Base
|
class Base
|
||||||
def foo(*a)
|
def foo(*a)
|
||||||
a
|
a
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: false
|
# frozen_string_literal: false
|
||||||
require '-test-/notimplement'
|
require '-test-/notimplement'
|
||||||
|
|
||||||
class TestNotImplement < Test::Unit::TestCase
|
class Test_NotImplement < Test::Unit::TestCase
|
||||||
def test_funcall_notimplement
|
def test_funcall_notimplement
|
||||||
bug3662 = '[ruby-dev:41953]'
|
bug3662 = '[ruby-dev:41953]'
|
||||||
assert_raise(NotImplementedError, bug3662) {
|
assert_raise(NotImplementedError, bug3662) {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'erb'
|
require 'erb'
|
||||||
|
|
||||||
class TestERB < Test::Unit::TestCase
|
class TestERBEncoding < Test::Unit::TestCase
|
||||||
def test_result_encoding
|
def test_result_encoding
|
||||||
erb = ERB.new("hello")
|
erb = ERB.new("hello")
|
||||||
assert_equal __ENCODING__, erb.result.encoding
|
assert_equal __ENCODING__, erb.result.encoding
|
||||||
|
@ -8,7 +8,7 @@ require_relative 'visibility_tests'
|
|||||||
class TestFileUtilsDryRun < Test::Unit::TestCase
|
class TestFileUtilsDryRun < Test::Unit::TestCase
|
||||||
|
|
||||||
include FileUtils::DryRun
|
include FileUtils::DryRun
|
||||||
include TestFileUtils::Visibility
|
include TestFileUtilsInc::Visibility
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
@ -8,7 +8,7 @@ require_relative 'visibility_tests'
|
|||||||
class TestFileUtilsNoWrite < Test::Unit::TestCase
|
class TestFileUtilsNoWrite < Test::Unit::TestCase
|
||||||
|
|
||||||
include FileUtils::NoWrite
|
include FileUtils::NoWrite
|
||||||
include TestFileUtils::Visibility
|
include TestFileUtilsInc::Visibility
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
@ -8,7 +8,7 @@ require_relative 'visibility_tests'
|
|||||||
class TestFileUtilsVerbose < Test::Unit::TestCase
|
class TestFileUtilsVerbose < Test::Unit::TestCase
|
||||||
|
|
||||||
include FileUtils::Verbose
|
include FileUtils::Verbose
|
||||||
include TestFileUtils::Visibility
|
include TestFileUtilsInc::Visibility
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
class TestFileUtils < Test::Unit::TestCase
|
class TestFileUtilsInc < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# These tests are reused in the FileUtils::Verbose, FileUtils::NoWrite and
|
# These tests are reused in the FileUtils::Verbose, FileUtils::NoWrite and
|
||||||
# FileUtils::DryRun tests
|
# FileUtils::DryRun tests
|
||||||
|
|
||||||
module TestFileUtils::Visibility
|
module TestFileUtilsInc::Visibility
|
||||||
|
|
||||||
FileUtils::METHODS.each do |m|
|
FileUtils::METHODS.each do |m|
|
||||||
define_method "test_singleton_visibility_#{m}" do
|
define_method "test_singleton_visibility_#{m}" do
|
||||||
|
@ -3,7 +3,7 @@ require 'test/unit'
|
|||||||
require 'rexml/document'
|
require 'rexml/document'
|
||||||
|
|
||||||
module REXMLTests
|
module REXMLTests
|
||||||
class OrderTester < Test::Unit::TestCase
|
class OrderTesterMF < Test::Unit::TestCase
|
||||||
DOC = <<END
|
DOC = <<END
|
||||||
<paper>
|
<paper>
|
||||||
<title>Remove this element and figs order differently</title>
|
<title>Remove this element and figs order differently</title>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: false
|
# frozen_string_literal: false
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
class TestIfunless < Test::Unit::TestCase
|
class TestIfUnless < Test::Unit::TestCase
|
||||||
def test_if_unless
|
def test_if_unless
|
||||||
x = 'test';
|
x = 'test';
|
||||||
assert(if x == x then true else false end)
|
assert(if x == x then true else false end)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: false
|
# frozen_string_literal: false
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
class TestIfunless < Test::Unit::TestCase
|
class TestNot < Test::Unit::TestCase
|
||||||
def test_not_with_grouped_expression
|
def test_not_with_grouped_expression
|
||||||
assert_equal(false, (not (true)))
|
assert_equal(false, (not (true)))
|
||||||
assert_equal(true, (not (false)))
|
assert_equal(true, (not (false)))
|
||||||
|
@ -39,7 +39,7 @@ class TestWeakMap < Test::Unit::TestCase
|
|||||||
x = nil
|
x = nil
|
||||||
end
|
end
|
||||||
GC.start
|
GC.start
|
||||||
skip # TODO: failure introduced from r60440
|
# skip('TODO: failure introduced from r60440')
|
||||||
assert_not_send([@wm, m, k])
|
assert_not_send([@wm, m, k])
|
||||||
end
|
end
|
||||||
alias test_member? test_include?
|
alias test_member? test_include?
|
||||||
|
@ -6,7 +6,7 @@ end
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
if defined?(WIN32OLE)
|
if defined?(WIN32OLE)
|
||||||
class TestThread < Test::Unit::TestCase
|
class TestWIN32OLE_THREAD < Test::Unit::TestCase
|
||||||
#
|
#
|
||||||
# test for Bug #2618(ruby-core:27634)
|
# test for Bug #2618(ruby-core:27634)
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user