summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-16 05:58:39 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-16 05:58:39 (GMT)
commit96863dc358cc86435099627a7afc1ec58a1fd79c (patch)
tree4292923636ea7e3aef06c2a417939759f77ef0a4 /bin
parentadf37e2fde99839f62554e5ddbc8fbd2807e2300 (diff)
* lib/test/unit.rb (Test::Unit.setup_argv): run tests only when
any tests have not run. * bin/testrb, test/runner.rb: use Test::Unit.start. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rwxr-xr-xbin/testrb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/testrb b/bin/testrb
index e4eb909..6a65fba 100755
--- a/bin/testrb
+++ b/bin/testrb
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
require 'test/unit'
-Test::Unit.setup_argv {|files|
+exit Test::Unit.start {|files|
if files.empty?
puts "Usage: testrb [options] tests..."
- exit 1
+ exit false
end
if files.size == 1
$0 = File.basename(files[0])