mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bin/testrb: set $0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d85760abff
commit
20e35ba14b
2 changed files with 9 additions and 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>
|
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.
|
* lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.
|
||||||
|
|
|
@ -5,5 +5,10 @@ Test::Unit.setup_argv {|files|
|
||||||
puts "Usage: testrb [options] tests..."
|
puts "Usage: testrb [options] tests..."
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
|
if files.size == 1
|
||||||
|
$0 = File.basename(files[0])
|
||||||
|
else
|
||||||
|
$0 = files.to_s
|
||||||
|
end
|
||||||
files
|
files
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue