aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-16 13:56:13 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-16 13:56:13 +0000
commit20e35ba14b80721867077d40e864c3cbb8b5afcf (patch)
tree97392b35bc340a01b94680a61d7732e61b30c3c0 /bin
parentd85760abffbcd80548a99ab4eb201df756f1c53d (diff)
downloadruby-20e35ba14b80721867077d40e864c3cbb8b5afcf.tar.gz
* bin/testrb: set $0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rwxr-xr-xbin/testrb5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/testrb b/bin/testrb
index 2e323f5cb0..e4eb9099b3 100755
--- a/bin/testrb
+++ b/bin/testrb
@@ -5,5 +5,10 @@ Test::Unit.setup_argv {|files|
puts "Usage: testrb [options] tests..."
exit 1
end
+ if files.size == 1
+ $0 = File.basename(files[0])
+ else
+ $0 = files.to_s
+ end
files
}