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 Function Severity:  3 - Normal
Priority:  3 - Low Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

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


Sun 24 Aug 2014 10:42:57 PM UTC, comment #2:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/ec28b7216501).

Rik <rik5>
Project Administrator
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 Files:

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 rik5 (Posted a comment)
  • -email is unavailable- added by sebald (Submitted the item)

    Do you think this task is very important?
    If so, you can 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
    Sun 24 Aug 2014 10:42:57 PM UTC rik5 StatusNone => Fixed
        Open/ClosedOpen => Closed
    Thu 17 Oct 2013 09:57:13 PM UTC rik5 Priority5 - Normal => 3 - Low

    Back to the top

    Powered by Savane 3.3