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

ruby-changes:37579

From: nobu <ko1@a...>
Date: Fri, 20 Feb 2015 17:19:56 +0900 (JST)
Subject: [ruby-changes:37579] nobu:r49660 (trunk): test_file.rb: just skip assertion

nobu	2015-02-20 17:19:48 +0900 (Fri, 20 Feb 2015)

  New Revision: 49660

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

  Log:
    test_file.rb: just skip assertion
    
    * test/ruby/test_file.rb (TestFile#test_stat): skip an assertion
      only, not making the entire test skipped

  Modified files:
    trunk/test/ruby/test_file.rb
Index: test/ruby/test_file.rb
===================================================================
--- test/ruby/test_file.rb	(revision 49659)
+++ test/ruby/test_file.rb	(revision 49660)
@@ -334,8 +334,10 @@ 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
+      unless /mswin|mingw/ =~ RUBY_PLATFORM
+        # Windows delays updating atime
+        assert_in_delta t0+6, stat.atime.to_f, delta
+      end
     }
   rescue NotImplementedError
   end

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

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