diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-06 09:28:02 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-06 09:28:02 +0000 |
commit | 52047a145bc88dfa48f1bc13409aa714cd87ce19 (patch) | |
tree | a3aba22742383b60f072b2322847f801d3d45dc3 /test/webrick/test_cgi.rb | |
parent | 9fc965eeba987a8ba7bb1b8e8080ac3b6f245ffb (diff) | |
download | ruby-52047a145bc88dfa48f1bc13409aa714cd87ce19.tar.gz |
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/webrick/test_cgi.rb')
-rw-r--r-- | test/webrick/test_cgi.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/webrick/test_cgi.rb b/test/webrick/test_cgi.rb index 5507dfec41..b9d066175f 100644 --- a/test/webrick/test_cgi.rb +++ b/test/webrick/test_cgi.rb @@ -37,11 +37,10 @@ class TestWEBrickCGI < Test::Unit::TestCase 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 |