[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fntests results in development sources (mingw gcc-4.3.2-dw2-TDM) (wa
From: |
Tatsuro MATSUOKA |
Subject: |
Re: fntests results in development sources (mingw gcc-4.3.2-dw2-TDM) (was fntests fails in development sources ) |
Date: |
Mon, 9 Mar 2009 14:15:48 +0900 (JST) |
Hello
> assert (log2 (complex (0, Inf)),Inf + log2 (i)) expected
> Inf + 2.266i
> but got
> NaN + 2.266i
Therefore I have carried out quick test,
// inftest.cc
#include <iostream>
using namespace std;
int main()
{
cout << 1.0/0.0;
}
g++ inftest.cc
cygwin gcc-4.3.2 and gcc-3.4.5 mingw
$ ./a
inf
gcc-4.3.0and gcc-4.3.2 TDM
$ ./a
1.#INF
Perhaps it is origin of the failures.
Regards
Tatsuro
--- Tatsuro MATSUOKA <address@hidden> wrote:
> Hello
>
> Please see
>
>
http://www.nabble.com/fntests-fails-in-development-sources-(mingw-gcc-4.3.2-dw2-TDM)-to22368640.html#a22368640
>
> ../octave-work/configure --prefix=/usr/local/hg-3.1.x
> --with-blas='-L/Octlib/lib -lblas'
> --without-lapack
>
> This of course made
> ARPACK and QRUPDATE libraries unable.
>
> However A\b was carried out correctly.
>
> So I was carried out fntests by make check
>
> The following two tests were hanged, the origins have not been investigated
> yet.
> scripts/sparse/svds.m
> src/DLD-FUNCTIONS/eigs.cc
>
> make check results
> c:\usr\Tatsu\mingwhome\octaves\hg-3.1.x\octave-work\src\data.cc PASS
> 500/509 FAIL 9
> c:\usr\Tatsu\mingwhome\octaves\hg-3.1.x\octave-work\src\ov-fcn-handle.cc
> PASS 1/2 FAIL
> 1
> test_string.m .......................................... PASS 76/77
> FAIL 1
> Summary:
> PASS 5467
> FAIL 11
> There was 1 expected failure (see fntests.log for details).
> c:\usr\Tatsu\mingwhome\octaves\hg-3.1.x\octave-work\src\ov-fcn-handle.cc
> PASS 1/2 FAIL
> 1
> test_string.m .......................................... PASS 76/77
> FAIL 1
> were already known.
> For the former Benjamin proposed the fix and the latter is already known but
> it can be
> negligible.
>
> c:\usr\Tatsu\mingwhome\octaves\hg-3.1.x\octave-work\src\data.cc PASS
> 500/509 FAIL 9
>
> are the new failures, which I have not check in detail because of the time
> limitation,
>
> Regards
>
> Tatsuro
>
> ***** assert(log2(complex(0,Inf)), Inf + log2(i));
> !!!!! test failed
> assert (log2 (complex (0, Inf)),Inf + log2 (i)) expected
> Inf + 2.266i
> but got
> NaN + 2.266i
> NaNs don't match ***** test
> [f, e] = log2 ([0,-1; 2,-4; Inf,-Inf]);
> assert (f, [0,-0.5; 0.5,-0.5; Inf,-Inf]);
> assert (e, [0,1;2,3;0,0])
> !!!!! test failed
> assert (f,[0, -0.5; 0.5, -0.5; Inf, -Inf]) expected
> 0.00000 -0.50000
> 0.50000 -0.50000
> Inf -Inf
> but got
> 0.00000 -0.50000
> 0.50000 -0.50000
> NaN NaN
> NaNs don't match ***** test
> [f, e] = log2 (complex (zeros (3, 2), [0,-1; 2,-4; Inf,-Inf]));
> assert (f, complex (zeros (3, 2), [0,-0.5; 0.5,-0.5; Inf,-Inf]));
> assert (e, [0,1; 2,3; 0,0]);
> !!!!! test failed
> assert (f,complex (zeros (3, 2), [0, -0.5; 0.5, -0.5; Inf, -Inf])) expected
> 0.00000 + 0.00000i 0.00000 - 0.50000i
> 0.00000 + 0.50000i 0.00000 - 0.50000i
> 0.00000 + Infi 0.00000 - Infi
> but got
> 0.00000 + 0.00000i 0.00000 - 0.50000i
> 0.00000 + 0.50000i 0.00000 - 0.50000i
> NaN - NaNi NaN - NaNi
> NaNs don't match ***** assert (sort ([NaN, 1i, -1, 2, Inf], "descend"),
> [NaN, Inf, 2, -1, 1i])
> !!!!! test failed
> assert (sort ([NaN, 1i, -1, 2, Inf], "descend"),[NaN, Inf, 2, -1, 1i])
> expected
> NaN + 0i Inf + 0i 2 + 0i -1 + 0i 0 + 1i
> but got
> NaN + 0i 2 + 0i -1 + 0i 0 + 1i Inf + 0i
> Infs don't matchshared variables {
> m2 =
>
> 1 2
> 3 4
>
> flo = 0
> fhi = Inf
> }
> ***** assert (sort ([NaN, 1i, -1, 2, Inf], 2, "descend"), [NaN, Inf, 2, -1,
> 1i])
> !!!!! test failed
> assert (sort ([NaN, 1i, -1, 2, Inf], 2, "descend"),[NaN, Inf, 2, -1, 1i])
> expected
> NaN + 0i Inf + 0i 2 + 0i -1 + 0i 0 + 1i
> but got
> NaN + 0i 2 + 0i -1 + 0i 0 + 1i Inf + 0i
> Infs don't matchshared variables {
> m2 =
>
> 1 2
> 3 4
>
> flo = 0
> fhi = Inf
> }
> ***** test
> [v, i] = sort ([NaN, 1i, -1, Inf, 1, 1i]);
> assert (v, [1, 1i, 1i, -1, Inf, NaN])
> assert (i, [5, 2, 6, 3, 4, 1])
> !!!!! test failed
> assert (v,[1, 1i, 1i, -1, Inf, NaN]) expected
> Columns 1 through 5:
>
> 1 + 0i 0 + 1i 0 + 1i -1 + 0i Inf + 0i
>
> Column 6:
>
> NaN + 0i
> but got
> Columns 1 through 5:
>
> 0 + 1i -1 + 0i Inf + 0i 1 + 0i 0 + 1i
>
> Column 6:
>
> NaN + 0i
> Infs don't matchshared variables {
> m2 =
>
> 1 2
> 3 4
>
> flo = 0
> fhi = Inf
> }
> ***** assert (sort (single([NaN, 1i, -1, 2, Inf]), "descend"), single([NaN,
> Inf, 2, -1, 1i]))
> !!!!! test failed
> assert (sort (single ([NaN, 1i, -1, 2, Inf]), "descend"),single ([NaN, Inf,
> 2, -1, 1i]))
> expected
> NaN + 0i Inf + 0i 2 + 0i -1 + 0i 0 + 1i
> but got
> NaN + 0i 2 + 0i -1 + 0i 0 + 1i Inf + 0i
> Infs don't matchshared variables {
> m2 =
>
> 1 2
> 3 4
>
> flo = 0
> fhi = Inf
> }
> ***** assert (sort (single([NaN, 1i, -1, 2, Inf]), 2, "descend"),
> single([NaN, Inf, 2, -1,
> 1i]))
> !!!!! test failed
> assert (sort (single ([NaN, 1i, -1, 2, Inf]), 2, "descend"),single ([NaN,
> Inf, 2, -1, 1i]))
> expected
> NaN + 0i Inf + 0i 2 + 0i -1 + 0i 0 + 1i
> but got
> NaN + 0i 2 + 0i -1 + 0i 0 + 1i Inf + 0i
> Infs don't matchshared variables {
> m2 =
>
> 1 2
> 3 4
>
> flo = 0
> fhi = Inf
> }
> ***** test
> [v, i] = sort (single([NaN, 1i, -1, Inf, 1, 1i]));
> assert (v, single([1, 1i, 1i, -1, Inf, NaN]))
> assert (i, [5, 2, 6, 3, 4, 1])
> !!!!! test failed
> assert (v,single ([1, 1i, 1i, -1, Inf, NaN])) expected
> Columns 1 through 5:
>
> 1 + 0i 0 + 1i 0 + 1i -1 + 0i Inf + 0i
>
> Column 6:
>
> NaN + 0i
> but got
> Columns 1 through 5:
>
> 0 + 1i -1 + 0i Inf + 0i 1 + 0i 0 + 1i
>
> Column 6:
>
> NaN + 0i
> Infs don't matchshared variables {
> m2 =
>
> 1 2
> 3 4
>
> flo = 0
> fhi = Inf
> }
> >>>>> processing
> >>>>> c:\usr\Tatsu\mingwhome\octaves\hg-3.1.x\octave-work\src\mappers.cc
> >>>>> processing
> >>>>> c:\usr\Tatsu\mingwhome\octaves\hg-3.1.x\octave-work\src\ov-fcn-handle.cc
> ***** test
> a = 2;
> f = @(x) a + x;
> g = @(x) 2 * x;
> hm = @flops;
> hdld = @svd;
> hbi = @log2;
> f2 = f;
> g2 = g;
> hm2 = hm;
> hdld2 = hdld;
> hbi2 = hbi;
> modes = {"-text", "-binary"};
> if (!isempty(findstr(octave_config_info ("DEFS"),"HAVE_HDF5")))
> modes(end+1) = "-hdf5";
> endif
> for i = 1:numel (modes)
> mode = modes{i};
> nm = tmpnam();
> unwind_protect
> save (mode, nm, "f2", "g2", "hm2", "hdld2", "hbi2");
> clear f2 g2 hm2 hdld2 hbi2
> load (nm);
> assert (f(2),f2(2));
> assert (g(2),g2(2));
> assert (g(3),g2(3));
> unlink (nm);
> save (mode, nm, "f2", "g2", "hm2", "hdld2", "hbi2");
> unwind_protect_cleanup
> unlink (nm);
> end_unwind_protect
> endfor
> !!!!! test failed
> function handle points to non-existent function>>>>> processing
> c:\usr\Tatsu\mingwhome\octaves\hg-3.1.x\octave-work\src\ov-fcn-inline.cc
>
>
>
>
> --------------------------------------
> Power up the Internet with Yahoo! Toolbar.
> http://pr.mail.yahoo.co.jp/toolbar/
>
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/