From a4d51619e9c3a9d03a0445cfd4947ec811754e52 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 19 May 2017 12:44:46 +0000 Subject: Of course, opened file is not able to unlink on Windows * test/test_tempfile.rb (test_create_with_block): close the tempfile before unlink. fixed a failure on Windows introduced at r58791. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/test_tempfile.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test_tempfile.rb') diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index 92ec988f63..8973051636 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -346,6 +346,7 @@ puts Tempfile.new('foo').path Tempfile.create("tempfile-create") {|f| path = f.path + f.close File.unlink(f.path) } assert_file.not_exist?(path) -- cgit v1.2.3