ruby-changes:21723
From: usa <ko1@a...>
Date: Wed, 16 Nov 2011 12:06:15 +0900 (JST)
Subject: [ruby-changes:21723] usa:r33772 (trunk): * test/webrick/test_cgi.rb (TestWEBrickCGI#start_cgi_server): there are
usa 2011-11-16 12:06:05 +0900 (Wed, 16 Nov 2011) New Revision: 33772 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33772 Log: * test/webrick/test_cgi.rb (TestWEBrickCGI#start_cgi_server): there are no guarantee of existance of RbConfig::CONFIG['LIBPATHENV']. it only exists in Unix-like environments. * test/webrick/test_filehandler.rb (WEBrick::TestFileHandler#test_script_disclosure): ditto. Modified files: trunk/ChangeLog trunk/test/webrick/test_cgi.rb trunk/test/webrick/test_filehandler.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 33771) +++ ChangeLog (revision 33772) @@ -1,3 +1,12 @@ +Wed Nov 16 12:02:47 2011 NAKAMURA Usaku <usa@r...> + + * test/webrick/test_cgi.rb (TestWEBrickCGI#start_cgi_server): there are + no guarantee of existance of RbConfig::CONFIG['LIBPATHENV']. + it only exists in Unix-like environments. + + * test/webrick/test_filehandler.rb + (WEBrick::TestFileHandler#test_script_disclosure): ditto. + Wed Nov 16 11:34:20 2011 NAKAMURA Usaku <usa@r...> * io.c (argf_next_argv): wrong timing of setting ecflags. Index: test/webrick/test_cgi.rb =================================================================== --- test/webrick/test_cgi.rb (revision 33771) +++ test/webrick/test_cgi.rb (revision 33772) @@ -14,7 +14,7 @@ def req.meta_vars meta = super meta["RUBYLIB"] = $:.join(File::PATH_SEPARATOR) - meta[RbConfig::CONFIG['LIBPATHENV']] = ENV[RbConfig::CONFIG['LIBPATHENV']] + meta[RbConfig::CONFIG['LIBPATHENV']] = ENV[RbConfig::CONFIG['LIBPATHENV']] if RbConfig::CONFIG['LIBPATHENV'] return meta end }, Index: test/webrick/test_filehandler.rb =================================================================== --- test/webrick/test_filehandler.rb (revision 33771) +++ test/webrick/test_filehandler.rb (revision 33772) @@ -252,7 +252,7 @@ def req.meta_vars meta = super meta["RUBYLIB"] = $:.join(File::PATH_SEPARATOR) - meta[RbConfig::CONFIG['LIBPATHENV']] = ENV[RbConfig::CONFIG['LIBPATHENV']] + meta[RbConfig::CONFIG['LIBPATHENV']] = ENV[RbConfig::CONFIG['LIBPATHENV']] if RbConfig::CONFIG['LIBPATHENV'] return meta end }, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/