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

ruby-changes:28840

From: naruse <ko1@a...>
Date: Wed, 22 May 2013 19:36:38 +0900 (JST)
Subject: [ruby-changes:28840] naruse:r40892 (trunk): Fix test failure of binmode from r40879

naruse	2013-05-22 19:36:28 +0900 (Wed, 22 May 2013)

  New Revision: 40892

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

  Log:
    Fix test failure of binmode from r40879
    
    http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20130521T131601Z.log.html.gz

  Modified files:
    trunk/test/digest/test_digest.rb

Index: test/digest/test_digest.rb
===================================================================
--- test/digest/test_digest.rb	(revision 40891)
+++ test/digest/test_digest.rb	(revision 40892)
@@ -80,7 +80,7 @@ module TestDigest https://github.com/ruby/ruby/blob/trunk/test/digest/test_digest.rb#L80
   end
 
   def test_s_file
-    Tempfile.create("test_digest_file") { |tmpfile|
+    Tempfile.create("test_digest_file", mode: File::BINARY) { |tmpfile|
       str = "hello, world.\r\n"
       tmpfile.print str
       tmpfile.close

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

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