ruby-changes:50590
From: nobu <ko1@a...>
Date: Tue, 13 Mar 2018 15:29:10 +0900 (JST)
Subject: [ruby-changes:50590] nobu:r62738 (trunk): Rename test classes to allow stable test count when running test-all -j
nobu 2018-03-13 15:29:02 +0900 (Tue, 13 Mar 2018) New Revision: 62738 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62738 Log: Rename test classes to allow stable test count when running test-all -j [Fix GH-1763] From: MSP-Greg <MSP-Greg@u...> Modified files: trunk/test/-ext-/array/test_resize.rb trunk/test/-ext-/bignum/test_big2str.rb trunk/test/-ext-/bignum/test_bigzero.rb trunk/test/-ext-/bignum/test_div.rb trunk/test/-ext-/bignum/test_mul.rb trunk/test/-ext-/bignum/test_pack.rb trunk/test/-ext-/bignum/test_str2big.rb trunk/test/-ext-/exception/test_data_error.rb trunk/test/-ext-/exception/test_enc_raise.rb trunk/test/-ext-/exception/test_ensured.rb trunk/test/-ext-/exception/test_exception_at_throwing.rb trunk/test/-ext-/hash/test_delete.rb trunk/test/-ext-/integer/test_integer.rb trunk/test/-ext-/integer/test_my_integer.rb trunk/test/-ext-/method/test_arity.rb trunk/test/-ext-/proc/test_bmethod.rb trunk/test/-ext-/test_notimplement.rb trunk/test/erb/test_erb_m17n.rb trunk/test/fileutils/test_dryrun.rb trunk/test/fileutils/test_nowrite.rb trunk/test/fileutils/test_verbose.rb trunk/test/fileutils/visibility_tests.rb trunk/test/rexml/test_martin_fowler.rb trunk/test/ruby/test_ifunless.rb trunk/test/ruby/test_not.rb trunk/test/ruby/test_weakmap.rb trunk/test/win32ole/test_thread.rb Index: test/ruby/test_ifunless.rb =================================================================== --- test/ruby/test_ifunless.rb (revision 62737) +++ test/ruby/test_ifunless.rb (revision 62738) @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_ifunless.rb#L1 # 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) Index: test/ruby/test_weakmap.rb =================================================================== --- test/ruby/test_weakmap.rb (revision 62737) +++ test/ruby/test_weakmap.rb (revision 62738) @@ -39,7 +39,7 @@ class TestWeakMap < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_weakmap.rb#L39 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? Index: test/ruby/test_not.rb =================================================================== --- test/ruby/test_not.rb (revision 62737) +++ test/ruby/test_not.rb (revision 62738) @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_not.rb#L1 # 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))) Index: test/-ext-/integer/test_my_integer.rb =================================================================== --- test/-ext-/integer/test_my_integer.rb (revision 62737) +++ test/-ext-/integer/test_my_integer.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/integer/test_my_integer.rb#L2 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 Index: test/-ext-/integer/test_integer.rb =================================================================== --- test/-ext-/integer/test_integer.rb (revision 62737) +++ test/-ext-/integer/test_integer.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/integer/test_integer.rb#L2 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'] Index: test/-ext-/test_notimplement.rb =================================================================== --- test/-ext-/test_notimplement.rb (revision 62737) +++ test/-ext-/test_notimplement.rb (revision 62738) @@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_notimplement.rb#L1 # 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) { Index: test/-ext-/array/test_resize.rb =================================================================== --- test/-ext-/array/test_resize.rb (revision 62737) +++ test/-ext-/array/test_resize.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/array/test_resize.rb#L2 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]' Index: test/-ext-/method/test_arity.rb =================================================================== --- test/-ext-/method/test_arity.rb (revision 62737) +++ test/-ext-/method/test_arity.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/method/test_arity.rb#L2 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() Index: test/-ext-/bignum/test_mul.rb =================================================================== --- test/-ext-/bignum/test_mul.rb (revision 62737) +++ test/-ext-/bignum/test_mul.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/bignum/test_mul.rb#L2 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 Index: test/-ext-/bignum/test_pack.rb =================================================================== --- test/-ext-/bignum/test_pack.rb (revision 62737) +++ test/-ext-/bignum/test_pack.rb (revision 62738) @@ -4,7 +4,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/bignum/test_pack.rb#L4 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 Index: test/-ext-/bignum/test_bigzero.rb =================================================================== --- test/-ext-/bignum/test_bigzero.rb (revision 62737) +++ test/-ext-/bignum/test_bigzero.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/bignum/test_bigzero.rb#L2 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]' Index: test/-ext-/bignum/test_div.rb =================================================================== --- test/-ext-/bignum/test_div.rb (revision 62737) +++ test/-ext-/bignum/test_div.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/bignum/test_div.rb#L2 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 Index: test/-ext-/bignum/test_big2str.rb =================================================================== --- test/-ext-/bignum/test_big2str.rb (revision 62737) +++ test/-ext-/bignum/test_big2str.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/bignum/test_big2str.rb#L2 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 Index: test/-ext-/bignum/test_str2big.rb =================================================================== --- test/-ext-/bignum/test_str2big.rb (revision 62737) +++ test/-ext-/bignum/test_str2big.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/bignum/test_str2big.rb#L2 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 Index: test/-ext-/hash/test_delete.rb =================================================================== --- test/-ext-/hash/test_delete.rb (revision 62737) +++ test/-ext-/hash/test_delete.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/hash/test_delete.rb#L2 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 Index: test/-ext-/exception/test_data_error.rb =================================================================== --- test/-ext-/exception/test_data_error.rb (revision 62737) +++ test/-ext-/exception/test_data_error.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/exception/test_data_error.rb#L2 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 Index: test/-ext-/exception/test_exception_at_throwing.rb =================================================================== --- test/-ext-/exception/test_exception_at_throwing.rb (revision 62737) +++ test/-ext-/exception/test_exception_at_throwing.rb (revision 62738) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/exception/test_exception_at_throwing.rb#L2 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; Index: test/-ext-/exception/test_ensured.rb =================================================================== --- test/-ext-/exception/test_ensured.rb (revision 62737) +++ test/-ext-/exception/test_ensured.rb (revision 62738) @@ -5,7 +5,7 @@ module Bug https://github.com/ruby/ruby/blob/trunk/test/-ext-/exception/test_ensured.rb#L5 class Bug7802 < RuntimeError end - class TestException < Test::Unit::TestCase + class Test_ExceptionE < Test::Unit::TestCase def test_ensured assert_separately([], <<-'end;') # do Index: test/-ext-/exception/test_enc_raise.rb =================================================================== --- test/-ext-/exception/test_enc_raise.rb (revision 62737) +++ test/-ext-/exception/test_enc_raise.rb (revision 62738) @@ -3,7 +3,7 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/-ext-/exception/test_enc_raise.rb#L3 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| Index: test/-ext-/proc/test_bmethod.rb =================================================================== --- test/-ext-/proc/test_bmethod.rb (revision 62737) +++ test/-ext-/proc/test_bmethod.rb (revision 62738) @@ -2,12 +2,12 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/proc/test_bmethod.rb#L2 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 Index: test/fileutils/test_dryrun.rb =================================================================== --- test/fileutils/test_dryrun.rb (revision 62737) +++ test/fileutils/test_dryrun.rb (revision 62738) @@ -8,7 +8,7 @@ require_relative 'visibility_tests' https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_dryrun.rb#L8 class TestFileUtilsDryRun < Test::Unit::TestCase include FileUtils::DryRun - include TestFileUtils::Visibility + include TestFileUtilsInc::Visibility def setup super Index: test/fileutils/test_verbose.rb =================================================================== --- test/fileutils/test_verbose.rb (revision 62737) +++ test/fileutils/test_verbose.rb (revision 62738) @@ -8,7 +8,7 @@ require_relative 'visibility_tests' https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_verbose.rb#L8 class TestFileUtilsVerbose < Test::Unit::TestCase include FileUtils::Verbose - include TestFileUtils::Visibility + include TestFileUtilsInc::Visibility def setup super Index: test/fileutils/test_nowrite.rb =================================================================== --- test/fileutils/test_nowrite.rb (revision 62737) +++ test/fileutils/test_nowrite.rb (revision 62738) @@ -8,7 +8,7 @@ require_relative 'visibility_tests' https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_nowrite.rb#L8 class TestFileUtilsNoWrite < Test::Unit::TestCase include FileUtils::NoWrite - include TestFileUtils::Visibility + include TestFileUtilsInc::Visibility def setup super Index: test/fileutils/visibility_tests.rb =================================================================== --- test/fileutils/visibility_tests.rb (revision 62737) +++ test/fileutils/visibility_tests.rb (revision 62738) @@ -2,14 +2,14 @@ https://github.com/ruby/ruby/blob/trunk/test/fileutils/visibility_tests.rb#L2 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 Index: test/win32ole/test_thread.rb =================================================================== --- test/win32ole/test_thread.rb (revision 62737) +++ test/win32ole/test_thread.rb (revision 62738) @@ -6,7 +6,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/win32ole/test_thread.rb#L6 require 'test/unit' if defined?(WIN32OLE) - class TestThread < Test::Unit::TestCase + class TestWIN32OLE_THREAD < Test::Unit::TestCase # # test for Bug #2618(ruby-core:27634) # Index: test/erb/test_erb_m17n.rb =================================================================== --- test/erb/test_erb_m17n.rb (revision 62737) +++ test/erb/test_erb_m17n.rb (revision 62738) @@ -3,7 +3,7 @@ https://github.com/ruby/ruby/blob/trunk/test/erb/test_erb_m17n.rb#L3 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 Index: test/rexml/test_martin_fowler.rb =================================================================== --- test/rexml/test_martin_fowler.rb (revision 62737) +++ test/rexml/test_martin_fowler.rb (revision 62738) @@ -3,7 +3,7 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/rexml/test_martin_fowler.rb#L3 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> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/