зеркало из https://github.com/github/ruby.git
revert r52312 because the failure does not always occur on Solaris
depending on the content of /etc/inet/services, and skipping the assertion by using RUBY_PLATFORM is generally a bad idea. In addition, no ChangeLog is given with the commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c8a7e854eb
Коммит
2819e3b841
|
@ -37,11 +37,8 @@ class TestGemCommandsServerCommand < Gem::TestCase
|
|||
@cmd.send :handle_options, %w[-p 65535]
|
||||
assert_equal 65535, @cmd.options[:port]
|
||||
|
||||
if /solaris/ !~ RUBY_PLATFORM
|
||||
# solaris will raise OptionParser::InvalidArgument
|
||||
@cmd.send :handle_options, %w[-p http]
|
||||
assert_equal 80, @cmd.options[:port]
|
||||
end
|
||||
@cmd.send :handle_options, %w[-p http]
|
||||
assert_equal 80, @cmd.options[:port]
|
||||
|
||||
e = assert_raises OptionParser::InvalidArgument do
|
||||
@cmd.send :handle_options, %w[-p nonexistent]
|
||||
|
|
Загрузка…
Ссылка в новой задаче