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 | |
| parent | acc5f5a97b98d04d074494b9b887951ffba0d172 (diff) | |
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
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rwxr-xr-x | bin/testrb | 5 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Dec 16 22:55:11 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * bin/testrb: set $0. + Tue Dec 16 21:59:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * ext/bigdecimal/bigdecimal.c (VpToString): reverted modification 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 } |
