mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
9fc965eeba
commit
52047a145b
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Sun Dec 6 18:25:22 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Sun Dec 6 15:25:06 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/io/console/console.c (console_getpass): add IO#getpass
|
* ext/io/console/console.c (console_getpass): add IO#getpass
|
||||||
|
|
|
@ -37,11 +37,10 @@ class TestWEBrickCGI < Test::Unit::TestCase
|
||||||
http.request(req){|res| assert_equal("/path/info", res.body, log.call)}
|
http.request(req){|res| assert_equal("/path/info", res.body, log.call)}
|
||||||
req = Net::HTTP::Get.new("/webrick.cgi/%3F%3F%3F?foo=bar")
|
req = Net::HTTP::Get.new("/webrick.cgi/%3F%3F%3F?foo=bar")
|
||||||
http.request(req){|res| assert_equal("/???", res.body, log.call)}
|
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")
|
unless RUBY_PLATFORM =~ /mswin|mingw|cygwin|bccwin32/
|
||||||
# Path info of res.body is passed via ENV.
|
# Path info of res.body is passed via ENV.
|
||||||
# ENV[] returns different value on Windows depending on locale.
|
# ENV[] returns different value on Windows depending on locale.
|
||||||
unless RUBY_PLATFORM =~ /mswin|mingw|cygwin|bccwin32/ &&
|
req = Net::HTTP::Get.new("/webrick.cgi/%A4%DB%A4%B2/%A4%DB%A4%B2")
|
||||||
Encoding.find("locale") != Encoding.find("filesystem")
|
|
||||||
http.request(req){|res|
|
http.request(req){|res|
|
||||||
assert_equal("/\xA4\xDB\xA4\xB2/\xA4\xDB\xA4\xB2", res.body, log.call)}
|
assert_equal("/\xA4\xDB\xA4\xB2/\xA4\xDB\xA4\xB2", res.body, log.call)}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue