diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-16 13:56:13 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-16 13:56:13 +0000 |
| commit | bbbcb3e520860ccd6199f53d2c264a2d076f289c (patch) | |
| tree | 97392b35bc340a01b94680a61d7732e61b30c3c0 | |
| parent | bb2fe14c0498861540770391617e214701b10d90 (diff) | |
| download | ruby-bbbcb3e520860ccd6199f53d2c264a2d076f289c.tar.gz ruby-bbbcb3e520860ccd6199f53d2c264a2d076f289c.tar.xz ruby-bbbcb3e520860ccd6199f53d2c264a2d076f289c.zip | |
* bin/testrb: set $0.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20801 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 22:42:16 2008 NAKAMURA Usaku <usa@ruby-lang.org> * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit. 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 } |
