From 242e2aaec2d0e755a54c3cc4c99d2c4d9046f4db Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 13 Sep 2009 17:59:49 +0000 Subject: [PATCH] remove temporally files explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_argf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index bdfd4cc6da..a1f260147e 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -28,11 +28,12 @@ class TestArgf < Test::Unit::TestCase @tmps.each {|t| bak = t.path + ".bak" File.unlink bak if File.file? bak + t.close(true) } end def make_tempfile - t = Tempfile.new("argf-foo") + t = Tempfile.new("argf-qux") t.puts "foo" t.puts "bar" t.puts "baz"