* test/webrick/test_filehandler.rb (test_short_filename):

read real short filename by cmd because smb mounted files
 have different naming convention.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
arton 2011-03-28 16:52:20 +00:00
Родитель f2b3d51787
Коммит 5988d8cbd5
2 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Tue Mar 29 00:03:51 2011 Tajima Akil <artonx@yahoo.co.jp>
* test/webrick/test_filehandler.rb (test_short_filename):
read real short filename by cmd because smb mounted files
have different naming convention.
Mon Mar 28 11:38:08 2011 NARUSE, Yui <naruse@ruby-lang.org>
* ext/date/date_core.c (date_s_today): use int for year.

Просмотреть файл

@ -216,8 +216,12 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase
}
TestWEBrick.start_httpserver(config) do |server, addr, port, log|
http = Net::HTTP.new(addr, port)
req = Net::HTTP::Get.new("/webric~1.cgi/test")
if windows?
fname = IO.popen("dir /x webrick_long_filename.cgi", "r").read.match(/\s(w.+?cgi)\s/i)[1].downcase
else
fname = "webric~1.cgi"
end
req = Net::HTTP::Get.new("/#{fname}/test")
http.request(req) do |res|
if windows?
assert_equal("200", res.code, log.call)