bugGNU Octave - Bugs: bug #37518, test always dumps shared variables...

 
 

bug #37518: test always dumps shared variables on failure

Submitted by:  None
Submitted on:  Sun 07 Oct 2012 01:21:35 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidAssigned to: None
Originator Name: Florian HarsOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.2
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 12 Oct 2012 04:01:43 AM UTC, comment #2:

%!test is behaving as it should. The shared variables are part of the system state and need to be displayed in order to allow debugging. For example, testing functions with random inputs is a good methodology, but it wouldn't work if a function failed and you couldn't determine what the problem input was. This common case is outlined below.

Rik <rik5>
Project Administrator
Sun 07 Oct 2012 06:07:57 PM UTC, comment #1:

I don't understand... what should it do instead?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Sun 07 Oct 2012 01:21:35 PM UTC, original submission:

If a test fails, test.m always dumps all shared variables, which makes it mostly useless for testing user written code because the test results get swamped out by usesles administrative gunk and irrelevant static test data.

Anonymous

 

(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 jordigh (Posted a comment)
  • -unavailable- added by None (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
    Fri 12 Oct 2012 04:01:43 AM UTCrik5StatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Sun 07 Oct 2012 06:07:57 PM UTCjordighStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1