summaryrefslogtreecommitdiffstats
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
commit50b963ea4a67611bc2741644378168dd1c664b40 (patch)
treea055e002bde669d4b9e5217195065ea338cf572a
parent476d22613c02bd61f9aaaaa07f80cc5bdec2e66b (diff)
downloadruby-50b963ea4a67611bc2741644378168dd1c664b40.tar.gz
ruby-50b963ea4a67611bc2741644378168dd1c664b40.tar.xz
ruby-50b963ea4a67611bc2741644378168dd1c664b40.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@9246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--test/webrick/test_cgi.rb3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d2e62825..a9cac4c72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Sep 20 17:26:42 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * 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]
+
Tue Sep 20 17:14:10 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* io.c: PIPE_BUF is not defined in BeOS. use _POSIX_PIPE_BUF instead.
diff --git a/test/webrick/test_cgi.rb b/test/webrick/test_cgi.rb
index 082fe0f19..b3e13ba2c 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")