Issue #4813 has been updated by Ryan Davis.

Status changed from Open to Closed
Assignee set to Ryan Davis

Thanks! I'll have this merged back into core in a sec. This will break other tests (intentionally) so I need to write up a ticket for sora first.

----------------------------------------
Bug #4813: test_minitest.rb failed on win32-x64
http://redmine.ruby-lang.org/issues/4813

Author: Akio Tajima
Status: Closed
Priority: Normal
Assignee: Ryan Davis
Category: lib
Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-06-01) [x64-mswin64_100]


minitest.rb with external command 'diff' may fail on (at least on my) win32-x64 ruby.
Above patch fixed this.

--- lib/minitest/unit.rb~	2011-06-01 22:09:05.000000000 +0900
+++ lib/minitest/unit.rb	2011-06-02 00:44:19.000000000 +0900
@@ -121,9 +121,11 @@ module MiniTest
 
       Tempfile.open("expect") do |a|
         a.puts expect
+        a.flush
         a.rewind
         Tempfile.open("butwas") do |b|
           b.puts butwas
+          b.flush
           b.rewind
 



-- 
http://redmine.ruby-lang.org