diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-17 06:18:45 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-17 06:18:45 +0000 |
commit | 2bd4cfc0ccd3701c96d499b3ec10c8ab26b0f31a (patch) | |
tree | 0094a1b39dd78bff06ebb0024cb88dc9a4322192 /bin | |
parent | acc5f5a97b98d04d074494b9b887951ffba0d172 (diff) | |
download | ruby-2bd4cfc0ccd3701c96d499b3ec10c8ab26b0f31a.tar.gz ruby-2bd4cfc0ccd3701c96d499b3ec10c8ab26b0f31a.tar.xz ruby-2bd4cfc0ccd3701c96d499b3ec10c8ab26b0f31a.zip |
merges r20801 from trunk into ruby_1_9_1.
* bin/testrb: set $0.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/testrb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/testrb b/bin/testrb index 2e323f5cb..e4eb9099b 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 } |