From cc29d740b6462c584fe9e908a19256ff7a81d8f8 Mon Sep 17 00:00:00 2001 From: ocean Date: Tue, 20 Sep 2005 08:35:52 +0000 Subject: * 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/trunk@9246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/test_cgi.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/webrick/test_cgi.rb') diff --git a/test/webrick/test_cgi.rb b/test/webrick/test_cgi.rb index 082fe0f190..b3e13ba2c5 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") -- cgit v1.2.3