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:
ngoto 2015-10-28 15:36:49 +00:00
Родитель c8a7e854eb
Коммит 2819e3b841
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -37,11 +37,8 @@ class TestGemCommandsServerCommand < Gem::TestCase
@cmd.send :handle_options, %w[-p 65535] @cmd.send :handle_options, %w[-p 65535]
assert_equal 65535, @cmd.options[:port] assert_equal 65535, @cmd.options[:port]
if /solaris/ !~ RUBY_PLATFORM @cmd.send :handle_options, %w[-p http]
# solaris will raise OptionParser::InvalidArgument assert_equal 80, @cmd.options[:port]
@cmd.send :handle_options, %w[-p http]
assert_equal 80, @cmd.options[:port]
end
e = assert_raises OptionParser::InvalidArgument do e = assert_raises OptionParser::InvalidArgument do
@cmd.send :handle_options, %w[-p nonexistent] @cmd.send :handle_options, %w[-p nonexistent]