зеркало из https://github.com/github/ruby.git
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:
Родитель
1032f093cc
Коммит
dd3851d278
|
@ -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]'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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)
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче