mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/logger/test_logger.rb: unlinking file before close causes problem under
win32 box. * lib/xsd/datatypes.rb(XSDFloat, XSDDouble): add +/- sign explicitly when stringified and embedded into XML instance. Ruby's sprintf may format -0.0 as "0.0" (no minus sign) depending on underlying C sprintf implementation. * test/xsd/test_xsd.rb, test/soap/test_basetype.rb: follow above change. * test/soap/calc/*: give httpd config param "CGIInterpreter". "/usr/bin/env ruby" thing does not work under non-Unix boxes. * ChangeLog: corrected wrong DoW of my log entries... git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
379c5c1e43
commit
637af54751
7 changed files with 95 additions and 77 deletions
|
|
@ -2,6 +2,7 @@ require 'test/unit'
|
|||
require 'soap/rpc/driver'
|
||||
require 'logger'
|
||||
require 'webrick'
|
||||
require 'rbconfig'
|
||||
|
||||
|
||||
module SOAP
|
||||
|
|
@ -9,6 +10,8 @@ module Calc
|
|||
|
||||
|
||||
class TestCalcCGI < Test::Unit::TestCase
|
||||
# This test shuld be run after installing ruby.
|
||||
RUBYBIN = File.join(Config::CONFIG["bindir"], Config::CONFIG["ruby_install_name"])
|
||||
def setup
|
||||
logger = Logger.new(STDERR)
|
||||
logger.level = Logger::Severity::FATAL
|
||||
|
|
@ -18,7 +21,8 @@ class TestCalcCGI < Test::Unit::TestCase
|
|||
:Port => 8808,
|
||||
:AccessLog => [],
|
||||
:DocumentRoot => File.dirname(File.expand_path(__FILE__)),
|
||||
:CGIPathEnv => ENV['PATH']
|
||||
:CGIPathEnv => ENV['PATH'],
|
||||
:CGIInterpreter => RUBYBIN
|
||||
)
|
||||
@t = Thread.new {
|
||||
@server.start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue