1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
parent c8a7e854eb
commit 2819e3b841

View file

@ -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]