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

ruby-changes:38147

From: akr <ko1@a...>
Date: Sat, 11 Apr 2015 16:22:59 +0900 (JST)
Subject: [ruby-changes:38147] akr:r50228 (trunk): refactored to make code consistent around sleep.

akr	2015-04-11 16:22:53 +0900 (Sat, 11 Apr 2015)

  New Revision: 50228

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

  Log:
    refactored to make code consistent around sleep.

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 50227)
+++ test/ruby/test_file_exhaustive.rb	(revision 50228)
@@ -135,8 +135,8 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L135
   end
 
   def test_stat
-    hardlinkfile
     fn1 = regular_file
+    hardlinkfile
     sleep(1.1)
     fn2 = fn1 + "2"
     make_file("foo", fn2)
@@ -1044,6 +1044,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L1044
 
   def test_test
     fn1 = regular_file
+    hardlinkfile
     sleep(1.1)
     fn2 = fn1 + "2"
     make_file("foo", fn2)
@@ -1096,7 +1097,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L1097
     fn1 = regular_file
     hardlinkfile
     sleep(1.1)
-    fn2 = regular_file + "2"
+    fn2 = fn1 + "2"
     make_file("foo", fn2)
     fs1, fs2 = File::Stat.new(fn1), File::Stat.new(fn2)
     assert_nothing_raised do

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

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