octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MINGW32 Patch: failed test in cellfun.cc


From: Benjamin Lindner
Subject: MINGW32 Patch: failed test in cellfun.cc
Date: Mon, 11 Jun 2007 12:56:08 +0200

One test in cellfun.cc fails on mingw32 and I guess also on 
msvc build due to hardcoded '/' as file seperators

The attached patch solves the issue

benjamin

diff -urN -x '.build*' -x '*.bak' -x '*.orig*' -x configure -x config.h.in -x 
'*~' octave-2.9.12-orig/src/DLD-FUNCTIONS/cellfun.cc 
octave-2.9.12/src/DLD-FUNCTIONS/cellfun.cc
--- octave-2.9.12-orig/src/DLD-FUNCTIONS/cellfun.cc     2007-05-15 
04:23:32.000000000 +0200
+++ octave-2.9.12/src/DLD-FUNCTIONS/cellfun.cc  2007-05-31 15:39:58.974250000 
+0200
@@ -526,8 +526,8 @@
 %!error(cellfun(@factorial,{-1,3}))
 %!assert(cellfun(@factorial,{-1,3},'ErrorHandler',@(x,y) NaN),[NaN,6])
 %!test
-%! [a,b,c]=cellfun(@fileparts,{'/a/b/c.d','/e/f/g.h'},'UniformOutput',false);
-%! assert(a,{'/a/b','/e/f'})
+%! 
[a,b,c]=cellfun(@fileparts,{[fullfile("a","b","c"),".d"],[fullfile("e","f","g"),".h"]},'UniformOutput',false);
+%! assert(a,{fullfile("a","b"),fullfile("e","f")})
 %! assert(b,{'c','g'})
 %! assert(c,{'.d','.h'})

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]