summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-20 08:35:52 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-20 08:35:52 +0000
commita5eca5dd0486503926482730602d94de7dd22c1f (patch)
treefaf3fc198fba8c5a8579d79b986eb2e6af727217 /test
parentd13023d25754ac80b752be2551ad6ee37bb9a3f0 (diff)
* test/webrick/test_cgi.rb: set ENV["PATH"] to CGIEnvPath on
windows. bcc32's runtime is not installed into system directory, so it cannot be found without this setting. [ruby-dev:27166] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/webrick/test_cgi.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/webrick/test_cgi.rb b/test/webrick/test_cgi.rb
index 082fe0f..b3e13ba 100644
--- a/test/webrick/test_cgi.rb
+++ b/test/webrick/test_cgi.rb
@@ -18,6 +18,9 @@ class TestWEBrickCGI < Test::Unit::TestCase
:DocumentRoot => File.dirname(__FILE__),
:DirectoryIndex => ["webrick.cgi"],
}
+ if RUBY_PLATFORM =~ /mswin32|mingw|cygwin|bccwin32/
+ config[:CGIPathEnv] = ENV['PATH'] # runtime dll may not be in system dir.
+ end
TestWEBrick.start_httpserver(config){|server, addr, port|
http = Net::HTTP.new(addr, port)
req = Net::HTTP::Get.new("/webrick.cgi")