bugGNU Octave - Bugs: bug #39703, test script with two outputs...

 
 

bug #39703: test script with two outputs doesn't run all tests

Submitted by:  Dan Sebald <sebald>
Submitted on:  Mon 05 Aug 2013 11:34:33 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 3 - LowItem Group: None
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 07 Aug 2013 03:08:52 PM UTC, comment #1:

When %!shared variables are declared they are valid until the next %!shared declaration. The test.m script doesn't know whether you used any of the shared variables or not, but it prints them out in case they were used and had a bearing on this particular test. Normally, this is exactly what you want because the test format tends towards

The %!assert or %!test block wouldn't make sense unless you also knew the value of the shared variables x,y, and z. One could try to code a regular expression to see if any of the shared variables were used in the code snippet before printing them out, but this sounds like overkill.

Rik <rik5>
Project Administrator
Mon 05 Aug 2013 11:34:33 PM UTC, original submission:

I believe there might be a couple problems in test.m. Here is the output of running the test script on the "interpft.m" file:

From the code in test.m, I believe that the test continues after a failure only if in batch mode. But there doesn't seem a way to control batch mode from the option list; only by supplying an FID output argument.

However, one would think that the two output version should run all tests if it is going to indicate now many were successful out of the total number of tests.

Also, test.m is printing out shared variables in event of a failure. Perhaps there is some cruft left in the code:

The shared variables that are listed are for a previous test and haven't anything to do with the failed test, as far as I know.

Dan Sebald <sebald>

 

(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 sebald (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 17 Oct 2013 09:57:13 PM UTCrik5Priority5 - Normal=>3 - Low

    Back to the top


    Powered by Savane 3.1-cleanup