Project

General

Profile

Actions

Bug #4813

closed

test_minitest.rb failed on win32-x64

Added by arton (Akio Tajima) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2011-06-01) [x64-mswin64_100]
Backport:
[ruby-core:36670]

Description

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
    
Actions

Also available in: Atom PDF

Like0
Like0Like0