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

ruby-changes:65444

From: Nobuyoshi <ko1@a...>
Date: Thu, 11 Mar 2021 09:23:48 +0900 (JST)
Subject: [ruby-changes:65444] a6b5d70bca (master): Create the test file under the created temporary directory

https://git.ruby-lang.org/ruby.git/commit/?id=a6b5d70bca

From a6b5d70bcabe66041376d5a82cedea9f2a391da8 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 11 Mar 2021 09:21:21 +0900
Subject: Create the test file under the created temporary directory

Fixes https://github.com/ruby/ruby/pull/4255
---
 test/ruby/test_file_exhaustive.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 0cb63c8..eaafe4a 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -680,7 +680,7 @@ class TestFileExhaustive < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L680
     assert_equal(t + 1, File.atime(zerofile))
     assert_equal(t + 2, File.mtime(zerofile))
     Dir.mktmpdir do |dir|
-      Dir.chdir do
+      Dir.chdir(dir) do
         path = "foo\u{30b3 30d4 30fc}"
         File.write(path, "") rescue next
         assert_equal(1, File.utime(nil, nil, path))
-- 
cgit v1.1


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

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