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

ruby-changes:40826

From: usa <ko1@a...>
Date: Sun, 6 Dec 2015 18:28:21 +0900 (JST)
Subject: [ruby-changes:40826] usa:r52905 (trunk): * test/webrick/test_cgi.rb (TestWEBrickCGI#test_cgi): gave up the test

usa	2015-12-06 18:28:02 +0900 (Sun, 06 Dec 2015)

  New Revision: 52905

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

  Log:
    * test/webrick/test_cgi.rb (TestWEBrickCGI#test_cgi): gave up the test
      of binary path info test on Windows because the test had passed
      occasionally as the comment said.

  Modified files:
    trunk/ChangeLog
    trunk/test/webrick/test_cgi.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52904)
+++ ChangeLog	(revision 52905)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Dec  6 18:25:22 2015  NAKAMURA Usaku  <usa@r...>
+
+	* test/webrick/test_cgi.rb (TestWEBrickCGI#test_cgi): gave up the test
+	  of binary path info test on Windows because the test had passed
+	  occasionally as the comment said.
+
 Sun Dec  6 15:25:06 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/io/console/console.c (console_getpass): add IO#getpass
Index: test/webrick/test_cgi.rb
===================================================================
--- test/webrick/test_cgi.rb	(revision 52904)
+++ test/webrick/test_cgi.rb	(revision 52905)
@@ -37,11 +37,10 @@ class TestWEBrickCGI < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/webrick/test_cgi.rb#L37
       http.request(req){|res| assert_equal("/path/info", res.body, log.call)}
       req = Net::HTTP::Get.new("/webrick.cgi/%3F%3F%3F?foo=bar")
       http.request(req){|res| assert_equal("/???", res.body, log.call)}
-      req = Net::HTTP::Get.new("/webrick.cgi/%A4%DB%A4%B2/%A4%DB%A4%B2")
-      # Path info of res.body is passed via ENV.
-      # ENV[] returns different value on Windows depending on locale.
-      unless RUBY_PLATFORM =~ /mswin|mingw|cygwin|bccwin32/ &&
-             Encoding.find("locale") != Encoding.find("filesystem")
+      unless RUBY_PLATFORM =~ /mswin|mingw|cygwin|bccwin32/
+        # Path info of res.body is passed via ENV.
+        # ENV[] returns different value on Windows depending on locale.
+        req = Net::HTTP::Get.new("/webrick.cgi/%A4%DB%A4%B2/%A4%DB%A4%B2")
         http.request(req){|res|
           assert_equal("/\xA4\xDB\xA4\xB2/\xA4\xDB\xA4\xB2", res.body, log.call)}
       end

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

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