summaryrefslogtreecommitdiffstats
path: root/test
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
commit0efe5cce4cf608a16663dbb3c5a80017c0b70e64 (patch)
treee01041deb7e634159ac1d0fc560faa192d9834a6 /test
parent9e84f1db96af92dda752f9f8f143961e09456419 (diff)
downloadruby-0efe5cce4cf608a16663dbb3c5a80017c0b70e64.tar.gz
ruby-0efe5cce4cf608a16663dbb3c5a80017c0b70e64.tar.xz
ruby-0efe5cce4cf608a16663dbb3c5a80017c0b70e64.zip
remove temporally files explicitly.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 bdfd4cc6d..a1f260147 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"