[前][次][番号順一覧][スレッド一覧]

ruby-changes:40231

From: naruse <ko1@a...>
Date: Wed, 28 Oct 2015 05:47:42 +0900 (JST)
Subject: [ruby-changes:40231] naruse:r52312 (trunk): solaris doesn't take http for handle_options

naruse	2015-10-28 05:47:23 +0900 (Wed, 28 Oct 2015)

  New Revision: 52312

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52312

  Log:
    solaris doesn't take http for handle_options

  Modified files:
    trunk/test/rubygems/test_gem_commands_server_command.rb
Index: test/rubygems/test_gem_commands_server_command.rb
===================================================================
--- test/rubygems/test_gem_commands_server_command.rb	(revision 52311)
+++ test/rubygems/test_gem_commands_server_command.rb	(revision 52312)
@@ -37,8 +37,11 @@ class TestGemCommandsServerCommand < Gem https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_server_command.rb#L37
     @cmd.send :handle_options, %w[-p 65535]
     assert_equal 65535, @cmd.options[:port]
 
-    @cmd.send :handle_options, %w[-p http]
-    assert_equal 80, @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
 
     e = assert_raises OptionParser::InvalidArgument do
       @cmd.send :handle_options, %w[-p nonexistent]

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]