[前][次][番号順一覧][スレッド一覧]

ruby-changes:31076

From: nobu <ko1@a...>
Date: Sun, 6 Oct 2013 09:38:39 +0900 (JST)
Subject: [ruby-changes:31076] nobu:r43155 (trunk): test_tempfile.rb: fix test on Windows

nobu	2013-10-06 09:38:34 +0900 (Sun, 06 Oct 2013)

  New Revision: 43155

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43155

  Log:
    test_tempfile.rb: fix test on Windows
    
    * test/test_tempfile.rb (test_tempfile_finalizer_does_not_run_if_unlinked):
      open file cannot be deleted on Windows.

  Modified files:
    trunk/test/test_tempfile.rb
Index: test/test_tempfile.rb
===================================================================
--- test/test_tempfile.rb	(revision 43154)
+++ test/test_tempfile.rb	(revision 43155)
@@ -212,6 +212,7 @@ puts Tempfile.new('foo').path https://github.com/ruby/ruby/blob/trunk/test/test_tempfile.rb#L212
     assert_in_out_err(args, <<-'EOS') do |(filename), (error)|
       tmp = Tempfile.new('foo')
       puts tmp.path
+      tmp.close
       tmp.unlink
       $DEBUG = true
       EOS

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]