[csw-devel] SF.net SVN: gar:[13940] csw/mgar/pkg/ruby19/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Fri Mar 25 02:47:41 CET 2011


Revision: 13940
          http://gar.svn.sourceforge.net/gar/?rev=13940&view=rev
Author:   bdwalton
Date:     2011-03-25 01:47:41 +0000 (Fri, 25 Mar 2011)

Log Message:
-----------
ruby19/trunk: patch another test: http is not in /etc/services, so use echo

Modified Paths:
--------------
    csw/mgar/pkg/ruby19/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/ruby19/trunk/files/0003-Use-echo-port-instead-of-http-for-gem-server-test.patch

Modified: csw/mgar/pkg/ruby19/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ruby19/trunk/Makefile	2011-03-25 01:33:32 UTC (rev 13939)
+++ csw/mgar/pkg/ruby19/trunk/Makefile	2011-03-25 01:47:41 UTC (rev 13940)
@@ -80,6 +80,7 @@
 
 PATCHFILES += 0001-Use-LOG_PID-instead-of-LOG_PERROR-in-Syslog.open-tes.patch
 PATCHFILES += 0002-Skip-syslog-tests-that-rely-on-LOG_PERROR-unless-it-.patch
+PATCHFILES += 0003-Use-echo-port-instead-of-http-for-gem-server-test.patch
 
 # We define upstream file regex so we can be notifed of new upstream
 # software release

Added: csw/mgar/pkg/ruby19/trunk/files/0003-Use-echo-port-instead-of-http-for-gem-server-test.patch
===================================================================
--- csw/mgar/pkg/ruby19/trunk/files/0003-Use-echo-port-instead-of-http-for-gem-server-test.patch	                        (rev 0)
+++ csw/mgar/pkg/ruby19/trunk/files/0003-Use-echo-port-instead-of-http-for-gem-server-test.patch	2011-03-25 01:47:41 UTC (rev 13940)
@@ -0,0 +1,33 @@
+From f83d10012cb3f37a5e4b249ce3fb865a785bab87 Mon Sep 17 00:00:00 2001
+From: Ben Walton <bwalton at opencsw.org>
+Date: Fri, 25 Mar 2011 02:43:56 +0100
+Subject: [PATCH] Use echo port instead of http for gem server test
+
+Solaris doesn't include http in /etc/services by default which causes
+test_handle_options_port(TestGemCommandsServerCommand) in the rubygems
+test suite to fail.  Use echo instead as just about every platform
+should have that.
+
+Signed-off-by: Ben Walton <bwalton at opencsw.org>
+---
+ test/rubygems/test_gem_commands_server_command.rb |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/test/rubygems/test_gem_commands_server_command.rb b/test/rubygems/test_gem_commands_server_command.rb
+index 780e542..c872378 100644
+--- a/test/rubygems/test_gem_commands_server_command.rb
++++ b/test/rubygems/test_gem_commands_server_command.rb
+@@ -37,8 +37,8 @@ class TestGemCommandsServerCommand < RubyGemTestCase
+     @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]
++    @cmd.send :handle_options, %w[-p echo]
++    assert_equal 7, @cmd.options[:port]
+ 
+     e = assert_raises OptionParser::InvalidArgument do
+       @cmd.send :handle_options, %w[-p nonexistent]
+-- 
+1.7.3.2
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list