aboutsummaryrefslogtreecommitdiffstats
path: root/test/runner.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-11 12:41:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-11 12:41:58 +0000
commit9c560af1b74ef031ab990ba82362192981407c42 (patch)
treeda9fc68be0d02109e1883000d0b359fe1405e3ad /test/runner.rb
parent96c078c34029bbc525085c4072b7e1ebcc9ec5a3 (diff)
downloadruby-9c560af1b74ef031ab990ba82362192981407c42.tar.gz
* bin/testrb, test/runner.rb, lib/test/unit.rb: improve backward
compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/runner.rb')
-rw-r--r--test/runner.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/runner.rb b/test/runner.rb
index e19ed82562..441bb0782e 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -7,12 +7,4 @@ srcdir = File.dirname(src_testdir)
require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true'
-tests = Test::Unit.new {|files, options|
- options[:base_directory] = src_testdir
- if files.empty?
- [src_testdir]
- else
- files
- end
-}
-exit tests.run(ARGV) || true
+exit Test::Unit::AutoRunner.run(true, src_testdir)