[前][次][番号順一覧][スレッド一覧]

ruby-changes:29473

From: nobu <ko1@a...>
Date: Fri, 21 Jun 2013 15:15:46 +0900 (JST)
Subject: [ruby-changes:29473] nobu:r41525 (trunk): test_filehandler.rb: fix for non-NTFS

nobu	2013-06-21 15:15:36 +0900 (Fri, 21 Jun 2013)

  New Revision: 41525

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41525

  Log:
    test_filehandler.rb: fix for non-NTFS
    
    * test/webrick/test_filehandler.rb (test_script_disclosure): Alternate
      Data Stream is available only on NTFS.

  Modified files:
    trunk/test/webrick/test_filehandler.rb

Index: test/webrick/test_filehandler.rb
===================================================================
--- test/webrick/test_filehandler.rb	(revision 41524)
+++ test/webrick/test_filehandler.rb	(revision 41525)
@@ -266,8 +266,9 @@ class WEBrick::TestFileHandler < Test::U https://github.com/ruby/ruby/blob/trunk/test/webrick/test_filehandler.rb#L266
         assert_equal("/test", res.body, log.call)
       end
 
+      resok = windows?
       response_assertion = Proc.new do |res|
-        if windows?
+        if resok
           assert_equal("200", res.code, log.call)
           assert_equal("/test", res.body, log.call)
         else
@@ -278,6 +279,7 @@ class WEBrick::TestFileHandler < Test::U https://github.com/ruby/ruby/blob/trunk/test/webrick/test_filehandler.rb#L279
       http.request(req, &response_assertion)
       req = Net::HTTP::Get.new("/webrick.cgi./test")
       http.request(req, &response_assertion)
+      resok &&= File.exist?(__FILE__+"::$DATA")
       req = Net::HTTP::Get.new("/webrick.cgi::$DATA/test")
       http.request(req, &response_assertion)
     end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]