mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/lib/envutil.rb: Moved from test/ruby/.
* test/lib/find_executable.rb: Ditto. * test/lib/memory_status.rb: Ditto. * test/lib/test/unit.rb: require envutil. * test/: Don't require envutil in test files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2e8f953d68
commit
fb2008a73a
121 changed files with 18 additions and 124 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
Fri Nov 14 01:03:17 2014 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* test/lib/envutil.rb: Moved from test/ruby/.
|
||||||
|
|
||||||
|
* test/lib/find_executable.rb: Ditto.
|
||||||
|
|
||||||
|
* test/lib/memory_status.rb: Ditto.
|
||||||
|
|
||||||
|
* test/lib/test/unit.rb: require envutil.
|
||||||
|
|
||||||
|
* test/: Don't require envutil in test files.
|
||||||
|
|
||||||
Thu Nov 13 21:59:58 2014 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
Thu Nov 13 21:59:58 2014 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
||||||
|
|
||||||
* lib/rexml/document.rb: add REXML::Document#document.
|
* lib/rexml/document.rb: add REXML::Document#document.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require_relative "../../ruby/envutil"
|
|
||||||
|
|
||||||
class TestBugReporter < Test::Unit::TestCase
|
class TestBugReporter < Test::Unit::TestCase
|
||||||
def test_bug_reporter_add
|
def test_bug_reporter_add
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
module Bug
|
module Bug
|
||||||
class TestException < Test::Unit::TestCase
|
class TestException < Test::Unit::TestCase
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
module Bug
|
module Bug
|
||||||
class Bug7802 < RuntimeError
|
class Bug7802 < RuntimeError
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
require '-test-/marshal/usr'
|
require '-test-/marshal/usr'
|
||||||
|
|
||||||
module Bug end
|
module Bug end
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/string/string"
|
require "-test-/string/string"
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
class Test_StringModifyExpand < Test::Unit::TestCase
|
class Test_StringModifyExpand < Test::Unit::TestCase
|
||||||
def test_modify_expand_memory_leak
|
def test_modify_expand_memory_leak
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require "-test-/struct"
|
require "-test-/struct"
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
class Bug::Struct::Test_Member < Test::Unit::TestCase
|
class Bug::Struct::Test_Member < Test::Unit::TestCase
|
||||||
S = Bug::Struct.new(:a)
|
S = Bug::Struct.new(:a)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
class Test_BUG_3571 < Test::Unit::TestCase
|
class Test_BUG_3571 < Test::Unit::TestCase
|
||||||
def test_block_call_id
|
def test_block_call_id
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
class TestRecursion < Test::Unit::TestCase
|
class TestRecursion < Test::Unit::TestCase
|
||||||
require '-test-/recursion'
|
require '-test-/recursion'
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require '-test-/tracepoint'
|
require '-test-/tracepoint'
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
class TestTracepointObj < Test::Unit::TestCase
|
class TestTracepointObj < Test::Unit::TestCase
|
||||||
def test_not_available_from_ruby
|
def test_not_available_from_ruby
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
module Bug
|
module Bug
|
||||||
module Win32
|
module Win32
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
module Bug
|
module Bug
|
||||||
module Win32
|
module Win32
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require_relative "testbase"
|
require_relative "testbase"
|
||||||
require_relative "../ruby/envutil"
|
|
||||||
require 'bigdecimal/math'
|
require 'bigdecimal/math'
|
||||||
|
|
||||||
require 'thread'
|
require 'thread'
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require_relative "testbase"
|
require_relative "testbase"
|
||||||
require_relative "../ruby/envutil"
|
|
||||||
require "bigdecimal/math"
|
require "bigdecimal/math"
|
||||||
|
|
||||||
class TestBigMath < Test::Unit::TestCase
|
class TestBigMath < Test::Unit::TestCase
|
||||||
|
|
|
@ -2,7 +2,6 @@ require 'test/unit'
|
||||||
require 'cgi'
|
require 'cgi'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
@ -3,7 +3,6 @@ require 'drb/drb'
|
||||||
require 'drb/extservm'
|
require 'drb/extservm'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require 'shellwords'
|
require 'shellwords'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
module DRbTests
|
module DRbTests
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
if Process.euid == 0
|
if Process.euid == 0
|
||||||
ok = true
|
ok = true
|
||||||
|
|
|
@ -2,7 +2,6 @@ require 'minitest/autorun'
|
||||||
require 'fiddle'
|
require 'fiddle'
|
||||||
|
|
||||||
# FIXME: this is stolen from DL and needs to be refactored.
|
# FIXME: this is stolen from DL and needs to be refactored.
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
libc_so = libm_so = nil
|
libc_so = libm_so = nil
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
begin
|
begin
|
||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
begin
|
begin
|
||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
begin
|
begin
|
||||||
require_relative 'helper'
|
require_relative 'helper'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ require_relative 'fileasserts'
|
||||||
require 'pathname'
|
require 'pathname'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
class TestFileUtils < Test::Unit::TestCase
|
class TestFileUtils < Test::Unit::TestCase
|
||||||
TMPROOT = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
|
TMPROOT = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
|
||||||
|
|
|
@ -7,7 +7,6 @@ if defined? GDBM
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
class TestGDBM_RDONLY < Test::Unit::TestCase
|
class TestGDBM_RDONLY < Test::Unit::TestCase
|
||||||
def TestGDBM_RDONLY.uname_s
|
def TestGDBM_RDONLY.uname_s
|
||||||
|
|
|
@ -4,7 +4,6 @@ begin
|
||||||
require 'pty'
|
require 'pty'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
class TestIO_Console < Test::Unit::TestCase
|
class TestIO_Console < Test::Unit::TestCase
|
||||||
Bug6116 = '[ruby-dev:45309]'
|
Bug6116 = '[ruby-dev:45309]'
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
module TestIRB
|
module TestIRB
|
||||||
class TestCompletion < Test::Unit::TestCase
|
class TestCompletion < Test::Unit::TestCase
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
module TestIRB
|
module TestIRB
|
||||||
class TestOption < Test::Unit::TestCase
|
class TestOption < Test::Unit::TestCase
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
module TestIRB
|
module TestIRB
|
||||||
class TestRaiseNoBacktraceException < Test::Unit::TestCase
|
class TestRaiseNoBacktraceException < Test::Unit::TestCase
|
||||||
|
|
|
@ -215,7 +215,6 @@ EOT
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_gc
|
def test_gc
|
||||||
require_relative '../ruby/envutil.rb'
|
|
||||||
assert_in_out_err(%w[-rjson --disable-gems], <<-EOS, [], [])
|
assert_in_out_err(%w[-rjson --disable-gems], <<-EOS, [], [])
|
||||||
bignum_too_long_to_embed_as_string = 1234567890123456789012345
|
bignum_too_long_to_embed_as_string = 1234567890123456789012345
|
||||||
expect = bignum_too_long_to_embed_as_string.to_s
|
expect = bignum_too_long_to_embed_as_string.to_s
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require "open3"
|
require "open3"
|
||||||
require "timeout"
|
require "timeout"
|
||||||
require "test/unit"
|
|
||||||
require_relative "find_executable"
|
require_relative "find_executable"
|
||||||
|
|
||||||
module EnvUtil
|
module EnvUtil
|
||||||
|
@ -357,7 +356,7 @@ module Test
|
||||||
line -= 5 # lines until src
|
line -= 5 # lines until src
|
||||||
src = <<eom
|
src = <<eom
|
||||||
# -*- coding: #{src.encoding}; -*-
|
# -*- coding: #{src.encoding}; -*-
|
||||||
require #{__dir__.dump}'/envutil';include Test::Unit::Assertions
|
require #{__dir__.dump}'/test/unit';include Test::Unit::Assertions
|
||||||
END {
|
END {
|
||||||
puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}"
|
puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}"
|
||||||
}
|
}
|
|
@ -60,7 +60,7 @@ module Memory
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
PAT = /^\s*(\d+)\s+(\d+)$/
|
PAT = /^\s*(\d+)\s+(\d+)$/
|
||||||
require_relative 'find_executable'
|
require_relative '../lib/find_executable'
|
||||||
if PSCMD = EnvUtil.find_executable("ps", "-ovsz=", "-orss=", "-p", $$.to_s) {|out| PAT =~ out}
|
if PSCMD = EnvUtil.find_executable("ps", "-ovsz=", "-orss=", "-p", $$.to_s) {|out| PAT =~ out}
|
||||||
PSCMD.pop
|
PSCMD.pop
|
||||||
end
|
end
|
|
@ -4,6 +4,7 @@ rescue Gem::LoadError
|
||||||
end
|
end
|
||||||
require 'minitest/unit'
|
require 'minitest/unit'
|
||||||
require 'test/unit/assertions'
|
require 'test/unit/assertions'
|
||||||
|
require_relative '../envutil'
|
||||||
require 'test/unit/testcase'
|
require 'test/unit/testcase'
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ require 'test/unit'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
class TestLogDevice < Test::Unit::TestCase
|
class TestLogDevice < Test::Unit::TestCase
|
||||||
class LogExcnRaiser
|
class LogExcnRaiser
|
||||||
|
|
|
@ -2,7 +2,6 @@ $extmk = true
|
||||||
|
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
class TestMkmf < Test::Unit::TestCase
|
class TestMkmf < Test::Unit::TestCase
|
||||||
class TestConfig < Test::Unit::TestCase
|
class TestConfig < Test::Unit::TestCase
|
||||||
|
|
|
@ -3,7 +3,6 @@ require 'test/unit'
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
require_relative 'utils'
|
require_relative 'utils'
|
||||||
require_relative '../../ruby/envutil'
|
|
||||||
|
|
||||||
class TestNetHTTP < Test::Unit::TestCase
|
class TestNetHTTP < Test::Unit::TestCase
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
require "objspace"
|
require "objspace"
|
||||||
require_relative "../ruby/envutil"
|
|
||||||
|
|
||||||
class TestObjSpace < Test::Unit::TestCase
|
class TestObjSpace < Test::Unit::TestCase
|
||||||
def test_memsize_of
|
def test_memsize_of
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
require_relative "../ruby/envutil"
|
|
||||||
require_relative "utils"
|
require_relative "utils"
|
||||||
|
|
||||||
if defined?(OpenSSL)
|
if defined?(OpenSSL)
|
||||||
|
|
|
@ -12,7 +12,6 @@ require "digest/md5"
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require "rbconfig"
|
require "rbconfig"
|
||||||
require "socket"
|
require "socket"
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
module OpenSSL::TestUtils
|
module OpenSSL::TestUtils
|
||||||
TEST_KEY_RSA1024 = OpenSSL::PKey::RSA.new <<-_end_of_pem_
|
TEST_KEY_RSA1024 = OpenSSL::PKey::RSA.new <<-_end_of_pem_
|
||||||
|
|
|
@ -5,7 +5,6 @@ require 'fileutils'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'enumerator'
|
require 'enumerator'
|
||||||
|
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
class TestPathname < Test::Unit::TestCase
|
class TestPathname < Test::Unit::TestCase
|
||||||
def self.define_assertion(name, linenum, &block)
|
def self.define_assertion(name, linenum, &block)
|
||||||
|
|
|
@ -13,7 +13,6 @@ require File.expand_path('../file_creation', __FILE__)
|
||||||
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
require_relative 'support/ruby_runner'
|
require_relative 'support/ruby_runner'
|
||||||
require_relative 'support/rakefile_definitions'
|
require_relative 'support/rakefile_definitions'
|
||||||
rescue NoMethodError, LoadError
|
rescue NoMethodError, LoadError
|
||||||
|
|
|
@ -509,7 +509,6 @@ class TestReadline < Test::Unit::TestCase
|
||||||
def assert_under_utf8
|
def assert_under_utf8
|
||||||
return false if ENV['LC_ALL'] == 'UTF-8'
|
return false if ENV['LC_ALL'] == 'UTF-8'
|
||||||
loc = caller_locations(1, 1)[0].base_label.to_s
|
loc = caller_locations(1, 1)[0].base_label.to_s
|
||||||
require_relative "../ruby/envutil"
|
|
||||||
assert_separately([{"LC_ALL"=>"UTF-8"}, "-r", __FILE__], <<SRC)
|
assert_separately([{"LC_ALL"=>"UTF-8"}, "-r", __FILE__], <<SRC)
|
||||||
#skip "test \#{ENV['LC_ALL']}"
|
#skip "test \#{ENV['LC_ALL']}"
|
||||||
#{self.class.name}.new(#{loc.dump}).run(Test::Unit::Runner.new)
|
#{self.class.name}.new(#{loc.dump}).run(Test::Unit::Runner.new)
|
||||||
|
|
|
@ -488,7 +488,6 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_take_bug_8215
|
def test_take_bug_8215
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
service = DRb.start_service(nil, @ts_base)
|
service = DRb.start_service(nil, @ts_base)
|
||||||
|
|
||||||
uri = service.uri
|
uri = service.uri
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
|
|
||||||
module TestRipper; end
|
module TestRipper; end
|
||||||
class TestRipper::Generic < Test::Unit::TestCase
|
class TestRipper::Generic < Test::Unit::TestCase
|
||||||
def test_parse_files
|
def test_parse_files
|
||||||
srcdir = File.expand_path("../../..", __FILE__)
|
srcdir = File.expand_path("../../..", __FILE__)
|
||||||
assert_separately(%W[--disable-gem -rripper -r#{__dir__}/../ruby/envutil - #{srcdir}],
|
assert_separately(%W[--disable-gem -rripper - #{srcdir}],
|
||||||
__FILE__, __LINE__, <<-'eom', timeout: Float::INFINITY)
|
__FILE__, __LINE__, <<-'eom', timeout: Float::INFINITY)
|
||||||
TEST_RATIO = 0.05 # testing all files needs too long time...
|
TEST_RATIO = 0.05 # testing all files needs too long time...
|
||||||
class Parser < Ripper
|
class Parser < Ripper
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
begin
|
begin
|
||||||
require_relative 'dummyparser'
|
require_relative 'dummyparser'
|
||||||
require_relative '../ruby/envutil'
|
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
ripper_test = true
|
ripper_test = true
|
||||||
module TestRipper; end
|
module TestRipper; end
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestAlias < Test::Unit::TestCase
|
class TestAlias < Test::Unit::TestCase
|
||||||
class Alias0
|
class Alias0
|
||||||
|
|
|
@ -3,7 +3,6 @@ require 'timeout'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestArgf < Test::Unit::TestCase
|
class TestArgf < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# coding: US-ASCII
|
# coding: US-ASCII
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestArray < Test::Unit::TestCase
|
class TestArray < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require 'thread'
|
require 'thread'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestAutoload < Test::Unit::TestCase
|
class TestAutoload < Test::Unit::TestCase
|
||||||
def test_autoload_so
|
def test_autoload_so
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestBeginEndBlock < Test::Unit::TestCase
|
class TestBeginEndBlock < Test::Unit::TestCase
|
||||||
DIR = File.dirname(File.expand_path(__FILE__))
|
DIR = File.dirname(File.expand_path(__FILE__))
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil.rb'
|
|
||||||
|
|
||||||
class TestCase < Test::Unit::TestCase
|
class TestCase < Test::Unit::TestCase
|
||||||
def test_case
|
def test_case
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestClass < Test::Unit::TestCase
|
class TestClass < Test::Unit::TestCase
|
||||||
# ------------------
|
# ------------------
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestComparable < Test::Unit::TestCase
|
class TestComparable < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestConst < Test::Unit::TestCase
|
class TestConst < Test::Unit::TestCase
|
||||||
TEST1 = 1
|
TEST1 = 1
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'continuation'
|
require 'continuation'
|
||||||
require 'fiber'
|
require 'fiber'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestContinuation < Test::Unit::TestCase
|
class TestContinuation < Test::Unit::TestCase
|
||||||
def test_create
|
def test_create
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestDefined < Test::Unit::TestCase
|
class TestDefined < Test::Unit::TestCase
|
||||||
class Foo
|
class Foo
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestDir_M17N < Test::Unit::TestCase
|
class TestDir_M17N < Test::Unit::TestCase
|
||||||
def with_tmpdir
|
def with_tmpdir
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestEncodingConverter < Test::Unit::TestCase
|
class TestEncodingConverter < Test::Unit::TestCase
|
||||||
def check_ec(edst, esrc, eres, dst, src, ec, off, len, opts=nil)
|
def check_ec(edst, esrc, eres, dst, src, ec, off, len, opts=nil)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestEncoding < Test::Unit::TestCase
|
class TestEncoding < Test::Unit::TestCase
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestEnumerator < Test::Unit::TestCase
|
class TestEnumerator < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestEnv < Test::Unit::TestCase
|
class TestEnv < Test::Unit::TestCase
|
||||||
IGNORE_CASE = /bccwin|mswin|mingw/ =~ RUBY_PLATFORM
|
IGNORE_CASE = /bccwin|mswin|mingw/ =~ RUBY_PLATFORM
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestEval < Test::Unit::TestCase
|
class TestEval < Test::Unit::TestCase
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestException < Test::Unit::TestCase
|
class TestException < Test::Unit::TestCase
|
||||||
def test_exception_rescued
|
def test_exception_rescued
|
||||||
|
|
|
@ -2,7 +2,6 @@ require 'test/unit'
|
||||||
require 'fiber'
|
require 'fiber'
|
||||||
require 'continuation'
|
require 'continuation'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require_relative './envutil'
|
|
||||||
|
|
||||||
class TestFiber < Test::Unit::TestCase
|
class TestFiber < Test::Unit::TestCase
|
||||||
def test_normal
|
def test_normal
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require "thread"
|
require "thread"
|
||||||
require_relative 'envutil'
|
|
||||||
require_relative 'ut_eof'
|
require_relative 'ut_eof'
|
||||||
|
|
||||||
class TestFile < Test::Unit::TestCase
|
class TestFile < Test::Unit::TestCase
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
require "fileutils"
|
require "fileutils"
|
||||||
require "tmpdir"
|
require "tmpdir"
|
||||||
require_relative "envutil"
|
|
||||||
|
|
||||||
class TestFileExhaustive < Test::Unit::TestCase
|
class TestFileExhaustive < Test::Unit::TestCase
|
||||||
DRIVE = Dir.pwd[%r'\A(?:[a-z]:|//[^/]+/[^/]+)'i]
|
DRIVE = Dir.pwd[%r'\A(?:[a-z]:|//[^/]+/[^/]+)'i]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestFlip < Test::Unit::TestCase
|
class TestFlip < Test::Unit::TestCase
|
||||||
def test_hidden_key
|
def test_hidden_key
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestFloat < Test::Unit::TestCase
|
class TestFloat < Test::Unit::TestCase
|
||||||
include EnvUtil
|
include EnvUtil
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestFnmatch < Test::Unit::TestCase
|
class TestFnmatch < Test::Unit::TestCase
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
require_relative "envutil"
|
|
||||||
|
|
||||||
class TestGc < Test::Unit::TestCase
|
class TestGc < Test::Unit::TestCase
|
||||||
class S
|
class S
|
||||||
def initialize(a)
|
def initialize(a)
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'continuation'
|
require 'continuation'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestHash < Test::Unit::TestCase
|
class TestHash < Test::Unit::TestCase
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ require 'stringio'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require 'weakref'
|
require 'weakref'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestIO < Test::Unit::TestCase
|
class TestIO < Test::Unit::TestCase
|
||||||
module Feature
|
module Feature
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestIO_M17N < Test::Unit::TestCase
|
class TestIO_M17N < Test::Unit::TestCase
|
||||||
ENCS = [
|
ENCS = [
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestISeq < Test::Unit::TestCase
|
class TestISeq < Test::Unit::TestCase
|
||||||
ISeq = RubyVM::InstructionSequence
|
ISeq = RubyVM::InstructionSequence
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestKeywordArguments < Test::Unit::TestCase
|
class TestKeywordArguments < Test::Unit::TestCase
|
||||||
def f1(str: "foo", num: 424242)
|
def f1(str: "foo", num: 424242)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestLazyEnumerator < Test::Unit::TestCase
|
class TestLazyEnumerator < Test::Unit::TestCase
|
||||||
class Step
|
class Step
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestRubyLiteral < Test::Unit::TestCase
|
class TestRubyLiteral < Test::Unit::TestCase
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# coding: US-ASCII
|
# coding: US-ASCII
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestM17N < Test::Unit::TestCase
|
class TestM17N < Test::Unit::TestCase
|
||||||
def assert_encoding(encname, actual, message=nil)
|
def assert_encoding(encname, actual, message=nil)
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestMethod < Test::Unit::TestCase
|
class TestMethod < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'pp'
|
require 'pp'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
$m0 = Module.nesting
|
$m0 = Module.nesting
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestNumeric < Test::Unit::TestCase
|
class TestNumeric < Test::Unit::TestCase
|
||||||
class DummyNumeric < Numeric
|
class DummyNumeric < Numeric
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestObject < Test::Unit::TestCase
|
class TestObject < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestObjectSpace < Test::Unit::TestCase
|
class TestObjectSpace < Test::Unit::TestCase
|
||||||
def self.deftest_id2ref(obj)
|
def self.deftest_id2ref(obj)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestProc < Test::Unit::TestCase
|
class TestProc < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -2,7 +2,6 @@ require 'test/unit'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require 'io/wait'
|
require 'io/wait'
|
||||||
require_relative 'envutil'
|
|
||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
|
|
||||||
class TestProcess < Test::Unit::TestCase
|
class TestProcess < Test::Unit::TestCase
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestRand < Test::Unit::TestCase
|
class TestRand < Test::Unit::TestCase
|
||||||
def assert_random_int(ws, m, init = 0)
|
def assert_random_int(ws, m, init = 0)
|
||||||
|
|
|
@ -2,7 +2,6 @@ require 'test/unit'
|
||||||
require 'delegate'
|
require 'delegate'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require 'bigdecimal'
|
require 'bigdecimal'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestRange < Test::Unit::TestCase
|
class TestRange < Test::Unit::TestCase
|
||||||
def test_range_string
|
def test_range_string
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
# to supress warnings for future calls of Module#refine
|
# to supress warnings for future calls of Module#refine
|
||||||
EnvUtil.suppress_warning do
|
EnvUtil.suppress_warning do
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# coding: US-ASCII
|
# coding: US-ASCII
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestRegexp < Test::Unit::TestCase
|
class TestRegexp < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require_relative 'envutil'
|
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
|
|
||||||
class TestRequire < Test::Unit::TestCase
|
class TestRequire < Test::Unit::TestCase
|
||||||
|
|
|
@ -4,8 +4,6 @@ require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
|
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestRubyOptions < Test::Unit::TestCase
|
class TestRubyOptions < Test::Unit::TestCase
|
||||||
def write_file(filename, content)
|
def write_file(filename, content)
|
||||||
File.open(filename, "w") {|f|
|
File.open(filename, "w") {|f|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestSetTraceFunc < Test::Unit::TestCase
|
class TestSetTraceFunc < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestSignal < Test::Unit::TestCase
|
class TestSignal < Test::Unit::TestCase
|
||||||
def test_signal
|
def test_signal
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
# use of $= is deprecated after 1.7.1
|
# use of $= is deprecated after 1.7.1
|
||||||
def pre_1_7_1
|
def pre_1_7_1
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
module TestStruct
|
module TestStruct
|
||||||
def test_struct
|
def test_struct
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestSuper < Test::Unit::TestCase
|
class TestSuper < Test::Unit::TestCase
|
||||||
class Base
|
class Base
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestSyntax < Test::Unit::TestCase
|
class TestSyntax < Test::Unit::TestCase
|
||||||
def assert_syntax_files(test)
|
def assert_syntax_files(test)
|
||||||
srcdir = File.expand_path("../../..", __FILE__)
|
srcdir = File.expand_path("../../..", __FILE__)
|
||||||
srcdir = File.join(srcdir, test)
|
srcdir = File.join(srcdir, test)
|
||||||
assert_separately(%W[--disable-gem -r#{__dir__}/envutil - #{srcdir}],
|
assert_separately(%W[--disable-gem - #{srcdir}],
|
||||||
__FILE__, __LINE__, <<-'eom', timeout: Float::INFINITY)
|
__FILE__, __LINE__, <<-'eom', timeout: Float::INFINITY)
|
||||||
dir = ARGV.shift
|
dir = ARGV.shift
|
||||||
for script in Dir["#{dir}/**/*.rb"].sort
|
for script in Dir["#{dir}/**/*.rb"].sort
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestSystem < Test::Unit::TestCase
|
class TestSystem < Test::Unit::TestCase
|
||||||
def test_system
|
def test_system
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# -*- coding: us-ascii -*-
|
# -*- coding: us-ascii -*-
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'thread'
|
require 'thread'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestThread < Test::Unit::TestCase
|
class TestThread < Test::Unit::TestCase
|
||||||
class Thread < ::Thread
|
class Thread < ::Thread
|
||||||
|
@ -124,7 +123,6 @@ class TestThread < Test::Unit::TestCase
|
||||||
dir = File.dirname(__FILE__)
|
dir = File.dirname(__FILE__)
|
||||||
lbtest = File.join(dir, "lbtest.rb")
|
lbtest = File.join(dir, "lbtest.rb")
|
||||||
$:.unshift File.join(File.dirname(dir), 'ruby')
|
$:.unshift File.join(File.dirname(dir), 'ruby')
|
||||||
require 'envutil'
|
|
||||||
$:.shift
|
$:.shift
|
||||||
3.times {
|
3.times {
|
||||||
`#{EnvUtil.rubybin} #{lbtest}`
|
`#{EnvUtil.rubybin} #{lbtest}`
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'thread'
|
require 'thread'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestThreadGroup < Test::Unit::TestCase
|
class TestThreadGroup < Test::Unit::TestCase
|
||||||
def test_thread_init
|
def test_thread_init
|
||||||
|
|
|
@ -2,7 +2,6 @@ require 'test/unit'
|
||||||
require 'delegate'
|
require 'delegate'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
require 'delegate'
|
require 'delegate'
|
||||||
require_relative 'envutil'
|
|
||||||
|
|
||||||
class TestTime < Test::Unit::TestCase
|
class TestTime < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue