1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_argf.rb (teardown): remove renamed temporary files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-06-02 10:18:38 +00:00
parent eaa3ffbae8
commit 8a5dd664e7
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Mon Jun 2 19:17:47 2008 Tanaka Akira <akr@fsij.org>
* test/ruby/test_argf.rb (teardown): remove renamed temporary files.
Mon Jun 2 18:51:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/un.rb (wait_writable): wait until target files can be

View file

@ -18,6 +18,14 @@ class TestArgf < Test::Unit::TestCase
@t3.puts "5"
@t3.puts "6"
@t3.close
@tmps = [@t1, @t2, @t3]
end
def teardown
@tmps.each {|t|
bak = t.path + ".bak"
File.unlink bak if File.file? bak
}
end
def make_tempfile
@ -26,6 +34,7 @@ class TestArgf < Test::Unit::TestCase
t.puts "bar"
t.puts "baz"
t.close
@tmps << t
t
end