diff options
-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 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 } |