aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 11:28:34 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 11:28:34 +0000
commitf32a843fef7eba4dcf9434710011dc247b0c289d (patch)
tree03fad69f2c7a483911e1cf2a021782754e94705e
parentabd92f0dec2f827c534fcd3b455361ff190b8527 (diff)
downloadruby-f32a843fef7eba4dcf9434710011dc247b0c289d.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_io.rb5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fba13c58e3..6a4ef7fec4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* io.c (rb_io_autoclose_p): Don't raise on frozen IO.
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 4cfd873a0d..170b08d310 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -2351,7 +2351,7 @@ End
def test_flush_in_finalizer1
require 'tempfile'
bug3910 = '[ruby-dev:42341]'
- Tempfile.open("bug3910") {|t|
+ t = Tempfile.open("bug3910") {|t|
path = t.path
t.close
fds = []
@@ -2362,10 +2362,11 @@ End
f.print "hoge"
}
end
- t.unlink
+ t
}
ensure
GC.start
+ t.unlink
end
def test_flush_in_finalizer2