bugGNU Octave - Bugs: bug #35850, %!warning block does not clean...

 
 

bug #35850: %!warning block does not clean warning before test

Submitted by:  CarnĂ« Draug <carandraug>
Submitted on:  Thu 15 Mar 2012 03:05:14 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Rik <rik5>
Originator Name: Open/Closed: Closed
Release: 3.6.1Operating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sun 14 Jul 2013 12:45:19 AM UTC, comment #3:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/0d5d3e53255f). There is some deeply buried bug when lastwarn() is used in try/catch blocks. I worked around it since I couldn't figure out the true source of the error.

Rik <rik5>
Project AdministratorIn charge of this item.
Sat 17 Mar 2012 12:43:47 AM UTC, comment #2:

I have an easy fix for this, BUT, the fix has revealed some strange behavior which was previously hidden. I need to work on that before I can commit the patch.

Rik <rik5>
Project AdministratorIn charge of this item.
Thu 15 Mar 2012 05:41:06 PM UTC, comment #1:

Confirmed on a recent tip.

Rik <rik5>
Project AdministratorIn charge of this item.
Thu 15 Mar 2012 03:05:14 PM UTC, original submission:

Hi

the %!warning block for testing functions checks the actual last warning instead of the warnings received by the function.

For example, given the following function:

testing this function should fail. However, if the previous warning was actually "something", testing this function will pass even though the function didn't actual emit any warning.

I don't know if I'm clear enough so here's an example to replicate the bug. Provided that the previous function is defined somewhere:

Carnë Draug <carandraug>
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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by carandraug (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 14 Jul 2013 12:45:19 AM UTCrik5StatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Sun 07 Apr 2013 06:27:24 PM UTCrik5Dependencies-=>bugs #38679 is dependent
    Sat 17 Mar 2012 12:43:47 AM UTCrik5StatusConfirmed=>In Progress
      Assigned toNone=>rik5
    Thu 15 Mar 2012 05:41:06 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup