1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_io.rb (TestIO#test_open_mode): MUST release resources

explicitly. fix problem of r31671


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-05-31 03:43:39 +00:00
parent 70c97ec805
commit c5324d7ed6
2 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Tue May 31 12:40:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_io.rb (TestIO#test_open_mode): MUST release resources
explicitly. fix problem of r31671
Tue May 31 10:49:55 2011 NARUSE, Yui <naruse@ruby-lang.org>
* vm_exec.c: remove conditions for clang

View file

@ -1854,10 +1854,14 @@ End
feature4742 = "[ruby-core:36338]"
mkcdtmpdir do
refute_nil(File.open('symbolic', 'w'))
refute_nil(File.open('numeric', File::WRONLY|File::TRUNC|File::CREAT))
refute_nil(File.open('hash-symbolic', :mode => 'w'))
refute_nil(File.open('hash-numeric', :mode => File::WRONLY|File::TRUNC|File::CREAT), feature4742)
refute_nil(f = File.open('symbolic', 'w'))
f.close
refute_nil(f = File.open('numeric', File::WRONLY|File::TRUNC|File::CREAT))
f.close
refute_nil(f = File.open('hash-symbolic', :mode => 'w'))
f.close
refute_nil(f = File.open('hash-numeric', :mode => File::WRONLY|File::TRUNC|File::CREAT), feature4742)
f.close
end
end