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

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:
nobu 2018-03-13 06:29:02 +00:00
parent 1032f093cc
commit dd3851d278
27 changed files with 29 additions and 29 deletions

View file

@ -2,7 +2,7 @@
require 'test/unit'
require '-test-/array/resize'
class TestArray < Test::Unit::TestCase
class Test_Array < Test::Unit::TestCase
class TestResize < Test::Unit::TestCase
def test_expand
feature = '[ruby-dev:42912]'

View file

@ -2,7 +2,7 @@
require 'test/unit'
require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class Test_Bignum < Test::Unit::TestCase
class TestBig2str < Test::Unit::TestCase
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT

View file

@ -2,7 +2,7 @@
require 'test/unit'
require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class Test_Bignum < Test::Unit::TestCase
class TestBigZero < Test::Unit::TestCase
def test_equal_0
bug8204 = '[ruby-core:53893] [Bug #8204]'

View file

@ -2,7 +2,7 @@
require 'test/unit'
require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class Test_Bignum < Test::Unit::TestCase
class TestDiv < Test::Unit::TestCase
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT

View file

@ -2,7 +2,7 @@
require 'test/unit'
require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class Test_Bignum < Test::Unit::TestCase
class TestMul < Test::Unit::TestCase
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT

View file

@ -4,7 +4,7 @@
require 'test/unit'
require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class Test_Bignum < Test::Unit::TestCase
class TestPack < Test::Unit::TestCase
MSWORD_FIRST = Integer::INTEGER_PACK_MSWORD_FIRST

View file

@ -2,7 +2,7 @@
require 'test/unit'
require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class Test_Bignum < Test::Unit::TestCase
class TestStr2big < Test::Unit::TestCase
SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT

View file

@ -2,7 +2,7 @@
require 'test/unit'
module Bug
class TestException < Test::Unit::TestCase
class Test_ExceptionDE < Test::Unit::TestCase
def test_cleanup_data_error
bug9167 = '[ruby-core:58643] [Bug #9167]'
assert_normal_exit(<<-'end;', bug9167) # do

View file

@ -3,7 +3,7 @@ require 'test/unit'
require '-test-/exception'
module Bug
class TestException < Test::Unit::TestCase
class Test_ExceptionER < Test::Unit::TestCase
def test_enc_raise
feature5650 = '[ruby-core:41160]'
Encoding.list.each do |enc|

View file

@ -5,7 +5,7 @@ module Bug
class Bug7802 < RuntimeError
end
class TestException < Test::Unit::TestCase
class Test_ExceptionE < Test::Unit::TestCase
def test_ensured
assert_separately([], <<-'end;') # do

View file

@ -2,7 +2,7 @@
require 'test/unit'
module Bug
class TestException < Test::Unit::TestCase
class Test_ExceptionAT < Test::Unit::TestCase
def test_exception_at_throwing
assert_separately(%w[-r-test-/exception], "#{<<-"begin;"}\n#{<<-"end;"}")
begin;

View file

@ -2,7 +2,7 @@
require 'test/unit'
require '-test-/hash'
class TestHash < Test::Unit::TestCase
class Test_Hash < Test::Unit::TestCase
class TestDelete < Test::Unit::TestCase
def test_delete
hash = Bug::Hash.new

View file

@ -2,7 +2,7 @@
require 'test/unit'
require '-test-/integer'
class TestInteger < Test::Unit::TestCase
class Test_Integer < Test::Unit::TestCase
FIXNUM_MIN = RbConfig::LIMITS['FIXNUM_MIN']
FIXNUM_MAX = RbConfig::LIMITS['FIXNUM_MAX']

View file

@ -2,7 +2,7 @@
require 'test/unit'
require "-test-/integer"
class TestIntegerExt < Test::Unit::TestCase
class Test_MyInteger < Test::Unit::TestCase
def test_my_integer_to_f
assert_raise(NotImplementedError) do
Bug::Integer::MyInteger.new.to_f

View file

@ -2,7 +2,7 @@
require '-test-/method'
require 'test/unit'
class TestMethod < Test::Unit::TestCase
class Test_Method < Test::Unit::TestCase
class TestArity < Test::Unit::TestCase
class A
def foo0()

View file

@ -2,12 +2,12 @@
require 'test/unit'
require '-test-/proc'
class TestProc < Test::Unit::TestCase
class Test_Proc < Test::Unit::TestCase
class TestBMethod < Test::Unit::TestCase
end
end
class TestProc::TestBMethod
class Test_Proc::TestBMethod
class Base
def foo(*a)
a

View file

@ -1,7 +1,7 @@
# frozen_string_literal: false
require '-test-/notimplement'
class TestNotImplement < Test::Unit::TestCase
class Test_NotImplement < Test::Unit::TestCase
def test_funcall_notimplement
bug3662 = '[ruby-dev:41953]'
assert_raise(NotImplementedError, bug3662) {

View file

@ -3,7 +3,7 @@
require 'test/unit'
require 'erb'
class TestERB < Test::Unit::TestCase
class TestERBEncoding < Test::Unit::TestCase
def test_result_encoding
erb = ERB.new("hello")
assert_equal __ENCODING__, erb.result.encoding

View file

@ -8,7 +8,7 @@ require_relative 'visibility_tests'
class TestFileUtilsDryRun < Test::Unit::TestCase
include FileUtils::DryRun
include TestFileUtils::Visibility
include TestFileUtilsInc::Visibility
def setup
super

View file

@ -8,7 +8,7 @@ require_relative 'visibility_tests'
class TestFileUtilsNoWrite < Test::Unit::TestCase
include FileUtils::NoWrite
include TestFileUtils::Visibility
include TestFileUtilsInc::Visibility
def setup
super

View file

@ -8,7 +8,7 @@ require_relative 'visibility_tests'
class TestFileUtilsVerbose < Test::Unit::TestCase
include FileUtils::Verbose
include TestFileUtils::Visibility
include TestFileUtilsInc::Visibility
def setup
super

View file

@ -2,14 +2,14 @@
require 'test/unit'
require 'fileutils'
class TestFileUtils < Test::Unit::TestCase
class TestFileUtilsInc < Test::Unit::TestCase
end
##
# These tests are reused in the FileUtils::Verbose, FileUtils::NoWrite and
# FileUtils::DryRun tests
module TestFileUtils::Visibility
module TestFileUtilsInc::Visibility
FileUtils::METHODS.each do |m|
define_method "test_singleton_visibility_#{m}" do

View file

@ -3,7 +3,7 @@ require 'test/unit'
require 'rexml/document'
module REXMLTests
class OrderTester < Test::Unit::TestCase
class OrderTesterMF < Test::Unit::TestCase
DOC = <<END
<paper>
<title>Remove this element and figs order differently</title>

View file

@ -1,7 +1,7 @@
# frozen_string_literal: false
require 'test/unit'
class TestIfunless < Test::Unit::TestCase
class TestIfUnless < Test::Unit::TestCase
def test_if_unless
x = 'test';
assert(if x == x then true else false end)

View file

@ -1,7 +1,7 @@
# frozen_string_literal: false
require 'test/unit'
class TestIfunless < Test::Unit::TestCase
class TestNot < Test::Unit::TestCase
def test_not_with_grouped_expression
assert_equal(false, (not (true)))
assert_equal(true, (not (false)))

View file

@ -39,7 +39,7 @@ class TestWeakMap < Test::Unit::TestCase
x = nil
end
GC.start
skip # TODO: failure introduced from r60440
# skip('TODO: failure introduced from r60440')
assert_not_send([@wm, m, k])
end
alias test_member? test_include?

View file

@ -6,7 +6,7 @@ end
require 'test/unit'
if defined?(WIN32OLE)
class TestThread < Test::Unit::TestCase
class TestWIN32OLE_THREAD < Test::Unit::TestCase
#
# test for Bug #2618(ruby-core:27634)
#