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

ruby-changes:34055

From: usa <ko1@a...>
Date: Mon, 26 May 2014 16:34:58 +0900 (JST)
Subject: [ruby-changes:34055] usa:r46136 (trunk): * test/ruby/test_file.rb: skip the test of atime on Windows, because

usa	2014-05-26 16:34:50 +0900 (Mon, 26 May 2014)

  New Revision: 46136

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

  Log:
    * test/ruby/test_file.rb: skip the test of atime on Windows, because
      Windows delays updating atime about 1 hour.
      see more details:
        http://msdn.microsoft.com/en-us/library/windows/desktop/ms724290%28v=vs.85%29.aspx

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_file.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46135)
+++ ChangeLog	(revision 46136)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon May 26 16:33:15 2014  NAKAMURA Usaku  <usa@r...>
+
+	* test/ruby/test_file.rb: skip the test of atime on Windows, because
+	  Windows delays updating atime about 1 hour.
+	  see more details:
+	    http://msdn.microsoft.com/en-us/library/windows/desktop/ms724290%28v=vs.85%29.aspx
+
 Mon May 26 12:25:36 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/optionparser.rb, lib/optparse.rb (OptParse): aliases.
Index: test/ruby/test_file.rb
===================================================================
--- test/ruby/test_file.rb	(revision 46135)
+++ test/ruby/test_file.rb	(revision 46136)
@@ -334,6 +334,7 @@ class TestFile < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file.rb#L334
     if stat.birthtime != stat.ctime
       assert_in_delta t0+4, stat.ctime.to_f, delta
     end
+    skip "Windows delays updating atime" if /mswin|mingw/ =~ RUBY_PLATFORM
     assert_in_delta t0+6, stat.atime.to_f, delta
   rescue NotImplementedError
   ensure

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

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