mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
a6df192ded
commit
a4d51619e9
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue