зеркало из https://github.com/github/ruby.git
* 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:
Родитель
d85760abff
Коммит
20e35ba14b
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче