mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/webrick/test_filehandler.rb
(WEBrick::TestFileHandler#test_short_filename): the cgi doesn't exist on current directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d8ac44fcfc
commit
d084c4f43d
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Mar 29 10:28:08 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* test/webrick/test_filehandler.rb
|
||||
(WEBrick::TestFileHandler#test_short_filename): the cgi doesn't exist
|
||||
on current directory.
|
||||
|
||||
Tue Mar 29 05:19:57 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/raddrinfo.c: parenthesize macro arguments.
|
||||
|
|
|
@ -217,7 +217,10 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase
|
|||
TestWEBrick.start_httpserver(config) do |server, addr, port, log|
|
||||
http = Net::HTTP.new(addr, port)
|
||||
if windows?
|
||||
fname = IO.popen("dir /x webrick_long_filename.cgi", "r").read.match(/\s(w.+?cgi)\s/i)[1].downcase
|
||||
fname = nil
|
||||
Dir.chdir(config[:DocumentRoot]) do
|
||||
fname = IO.popen("dir /x webrick_long_filename.cgi", "r").read.match(/\s(w.+?cgi)\s/i)[1].downcase
|
||||
end
|
||||
else
|
||||
fname = "webric~1.cgi"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue