summaryrefslogtreecommitdiffstats
path: root/test/runner.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-02 12:31:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-02 12:31:44 +0000
commite3ecad11840d11d6cf6f2cc88d374a673081379c (patch)
tree5eaee7e1c2ed82189f71b1102a43198ea4956b4d /test/runner.rb
parent9124cc822046fb694a4e8b6013f300c8a5132676 (diff)
downloadruby-e3ecad11840d11d6cf6f2cc88d374a673081379c.tar.gz
ruby-e3ecad11840d11d6cf6f2cc88d374a673081379c.tar.xz
ruby-e3ecad11840d11d6cf6f2cc88d374a673081379c.zip
* bin/testrb: new test runner. [ruby-core:01845]
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner.run, Test::Unit::AutoRunner#initialize): take test list to run. * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::RUNNERS, Test::Unit::AutoRunner#run): should not exit inside a library, just return the result instead. * lib/test/unit.rb: ditto. * test/runner.rb: exit with the test result. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/runner.rb')
-rw-r--r--test/runner.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/runner.rb b/test/runner.rb
index b4501bee9..4ecc35aec 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -4,7 +4,4 @@ rcsid = %w$Id$
Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze
Release = rcsid[3].freeze
-runner = Test::Unit::AutoRunner.new(true)
-runner.to_run.concat(ARGV)
-runner.to_run << File.dirname(__FILE__) if runner.to_run.empty?
-runner.run
+exit Test::Unit::AutoRunner.run(false, File.dirname($0))