mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_io.rb (test_flush_in_finalizer1): some opened fds are
remain before GC, so unlink the tempfile is failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
abd92f0dec
commit
f32a843fef
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue May 27 20:26:06 2014 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/ruby/test_io.rb (test_flush_in_finalizer1): some opened fds are
|
||||||
|
remain before GC, so unlink the tempfile is failed.
|
||||||
|
|
||||||
Tue May 27 19:07:26 2014 Tanaka Akira <akr@fsij.org>
|
Tue May 27 19:07:26 2014 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* io.c (rb_io_autoclose_p): Don't raise on frozen IO.
|
* io.c (rb_io_autoclose_p): Don't raise on frozen IO.
|
||||||
|
|
|
@ -2351,7 +2351,7 @@ End
|
||||||
def test_flush_in_finalizer1
|
def test_flush_in_finalizer1
|
||||||
require 'tempfile'
|
require 'tempfile'
|
||||||
bug3910 = '[ruby-dev:42341]'
|
bug3910 = '[ruby-dev:42341]'
|
||||||
Tempfile.open("bug3910") {|t|
|
t = Tempfile.open("bug3910") {|t|
|
||||||
path = t.path
|
path = t.path
|
||||||
t.close
|
t.close
|
||||||
fds = []
|
fds = []
|
||||||
|
@ -2362,10 +2362,11 @@ End
|
||||||
f.print "hoge"
|
f.print "hoge"
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
t.unlink
|
t
|
||||||
}
|
}
|
||||||
ensure
|
ensure
|
||||||
GC.start
|
GC.start
|
||||||
|
t.unlink
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_flush_in_finalizer2
|
def test_flush_in_finalizer2
|
||||||
|
|
Loading…
Reference in a new issue