summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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"