ruby-changes:13156
From: akr <ko1@a...>
Date: Mon, 14 Sep 2009 02:59:59 +0900 (JST)
Subject: [ruby-changes:13156] Ruby:r24908 (trunk, ruby_1_8): remove temporally files explicitly.
akr 2009-09-14 02:59:49 +0900 (Mon, 14 Sep 2009) New Revision: 24908 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24908 Log: remove temporally files explicitly. Modified files: branches/ruby_1_8/test/ruby/test_argf.rb trunk/test/ruby/test_argf.rb Index: test/ruby/test_argf.rb =================================================================== --- test/ruby/test_argf.rb (revision 24907) +++ test/ruby/test_argf.rb (revision 24908) @@ -28,11 +28,12 @@ @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" Index: ruby_1_8/test/ruby/test_argf.rb =================================================================== --- ruby_1_8/test/ruby/test_argf.rb (revision 24907) +++ ruby_1_8/test/ruby/test_argf.rb (revision 24908) @@ -27,11 +27,12 @@ @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" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/