summaryrefslogtreecommitdiff
path: root/test/ruby/test_argf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-13 17:59:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-13 17:59:49 +0000
commit242e2aaec2d0e755a54c3cc4c99d2c4d9046f4db (patch)
treee01041deb7e634159ac1d0fc560faa192d9834a6 /test/ruby/test_argf.rb
parent119e97479df5970090031589b53909165ea19b8f (diff)
remove temporally files explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_argf.rb')
-rw-r--r--test/ruby/test_argf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb
index bdfd4cc6da6..a1f260147ea 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"