From d51d07a81326b007a509eb5fd9e8529daba645c5 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 16 Oct 2008 13:55:09 +0000 Subject: * lib/test/unit: removed test/unit. * lib/test/unit.rb: new compatibility layer using minitest. * bin/testrb: use above. * test/runner.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/runner.rb | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'test') diff --git a/test/runner.rb b/test/runner.rb index aa78c4ead..c8a06e1dd 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -1,19 +1,5 @@ require 'rbconfig' exit if CROSS_COMPILING -require 'test/unit' - -rcsid = %w$Id$ -Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze -Release = rcsid[3].freeze - -# this allows minitest and test/unit to run side by side. test/unit -# tests with fork/signal were triggering minitest multiple times. -require 'minitest/unit' -MiniTest::Unit.disable_autorun - -args = ARGV.dup -result = Test::Unit::AutoRunner.run(true, File.dirname($0)) -result &&= MiniTest::Unit.new.run(args) - -exit result +require 'test/unit' +Test::Unit.setup_argv -- cgit