bugGNU Octave - Bugs: bug #32036, fntests errors on data.cc on MinGW

 
 

bug #32036: fntests errors on data.cc on MinGW

Submitter:  Tatsuro MATSUOKA <tmacchant>
Submitted:  Mon 03 Jan 2011 08:33:56 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 03 Jan 2014 12:35:24 AM UTC, comment #7: 

The two tests involving log2 work for me as well with version 3.8.0 cross-built with MXE and running on Windows XP.

Rik <rik5>
Group administrator
Thu 02 Jan 2014 10:01:05 PM UTC, comment #6: 

These tests appear to work correctly for me with 3.8.0 on a Windows 7 system.  Can anyone else confirm?  If so, please close this report as I think the problem is fixed.

John W. Eaton <jwe>
Group administrator
Sun 03 Nov 2013 12:12:41 PM UTC, comment #5: 

Still present on 3.7.7+ MXE-cross-built.

I'll detail the data.cc, syscalls.cc and quadgk.m errors later (no time now).

Philip Nienhuis <philipnienhuis>
Group Member
Fri 01 Nov 2013 01:03:34 PM UTC, comment #4: 

I can confirm that this still fails for a 3.7.6 MXE build on WinXP

$ cd "share/octave/3.7.6/etc/tests/libinterp/corefcn"
$ test("data.cc-tst", "quiet", f)
PASSES 845 out of 848 tests

>>>>> processing data.cc-tst
  ***** test
 [f, e] = log2 ([0,-1; 2,-4; Inf,-Inf]);
 assert (f, [0,-0.5; 0.5,-0.5; Inf,-Inf]);
 assert (e(1:2,:), [0,1;2,3]);
!!!!! test failed
ASSERT errors for:  assert (f,[0, -0.5; 0.5, -0.5; Inf, -Inf])

  Location  |  Observed  |  Expected  |  Reason
   (3,1)         NaN          Inf        'NaN' mismatch
   (3,2)         NaN          -Inf       'NaN' mismatch
  ***** 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(1:2,:), [0,1; 2,3]);
!!!!! test failed
ASSERT errors for:  assert (f,complex (zeros (3, 2), [0, -0.5; 0.5, -0.5; Inf, -Inf]))

  Location  |  Observed  |  Expected  |  Reason
   (3,1)       NaN+NaNi      0+Infi      'NaN' mismatch
   (3,2)       NaN+NaNi      0-Infi      'NaN' mismatch
  ***** 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 errors for:  assert (i,[5, 2, 6, 3, 4, 1])

  Location  |  Observed  |  Expected  |  Reason
    (2)           6            2         Abs err 4 exceeds tol 0
    (3)           2            6         Abs err 4 exceeds tol 0
shared variables
  scalar structure containing the fields:

    id = 1383303486621


Andreas Weber <andy1978>
Group Member
Mon 21 Feb 2011 07:34:31 AM UTC, comment #3: 

These have been known from version 3.0.  One of them have been solved.  But two remained differences have not been solved.
Perhaps special treatments around NAN should be required to solve these problems.

Tatsuro MATSUOKA <tmacchant>
Mon 21 Feb 2011 02:09:45 AM UTC, comment #2: 

Can this issue be closed?  Does the new 3.4.0 release, when compiled with '--enable-float-truncate', still have fntest errors?

Rik <rik5>
Group administrator
Sun 09 Jan 2011 09:35:34 PM UTC, comment #1: 

After re-configured with '--enable-float-truncate' ??, the last error

#**************
[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 (i,[5, 2, 6, 3, 4, 1]) expected
5 2 6 3 4 1
but got
5 6 2 3 4 1
<snip>
#**************

was disappeared.

Tatsuro MATSUOKA <tmacchant>
Mon 03 Jan 2011 08:33:56 AM UTC, original submission:  

The errors on in the fntests on data.cc have been reported and discussed by Benjamin.

I could not find it from the ML archives.
In order not to forget this, I have reported here.

  *** test
 [f, e] = log2 ([0,-1; 2,-4; Inf,-Inf]);
 assert (f, [0,-0.5; 0.5,-0.5; Inf,-Inf]);
 assert (e(1:2,:), [0,1;2,3])
!!!!! 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(1:2,:), [0,1; 2,3]);
!!!!! 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
  *** 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 (i,[5, 2, 6, 3, 4, 1]) expected
   5   2   6   3   4   1
but got
   5   6   2   3   4   1
values do not match
shared variables {
  m2 =

     1   2
     3   4

  flo = 0
  fhi = Inf
}




Tatsuro MATSUOKA <tmacchant>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by tmacchant (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-03 jwe StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2013-11-03 philipnienhuis StatusNeed Info Confirmed
    2011-02-21 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code