bugGNU Octave - Bugs: bug #47778, textscan ReturnOnError setting...

 
 

bug #47778: textscan ReturnOnError setting misinterpreted in test

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Sun 24 Apr 2016 09:13:09 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Philip NienhuisOpen/Closed: Closed
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 25 Apr 2016 07:44:16 PM UTC, comment #3:

Yep, it appears that when building new versions in an existing mxe-octave build tree the extracted test files do not seem to get renewed. At least, that's what I find here.

Sorry for the noise.

Closing with "invalid" (for the proper stats)

Philip Nienhuis <philipnienhuis>
Project Member
Mon 25 Apr 2016 04:25:02 PM UTC, comment #2:

I can't find these tests either. I'm marking as "Works For Me" because I don't see any test failures.

Rik <rik5>
Project Administrator
Sun 24 Apr 2016 11:51:49 PM UTC, comment #1:

Interesting. I can't find any "d = textscan" in the current tests. It was used in the previous tests before some fixes of ReturnOnError.

Is it possible that there is an old tst file in your MXE-octave build tree?

Lachlan Andrew <lachlan>
Project Member
Sun 24 Apr 2016 09:13:09 PM UTC, original submission:

Investigating textscan FAILs on Windows with a just cross-compiled dev Octave, I found this behavior:

Now, the first call is functionally the same as the second, as ReturnOnError's default setting = "true" (at least it is in Matlab), and should return the same data as the second.

I think the first textscan call should rather be:
c = textscan (fid, "%f %f %f", "ReturnOnError", 0);
and the assert should rather check for an error message like "error: textscan: Read error in field"

Philip Nienhuis <philipnienhuis>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by philipnienhuis (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 25 Apr 2016 07:44:16 PM UTCphilipnienhuisStatusWorks For Me=>Invalid
      Open/ClosedOpen=>Closed
    Mon 25 Apr 2016 04:25:02 PM UTCrik5StatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1