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

 
 
Show feedback again

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: In ProgressAssigned to: Rik <rik5>
Originator Name: Open/Closed: Open
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.

 

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 MemberIn charge of this item.
Thu 15 Mar 2012 05:41:06 PM UTC, comment #1:

Confirmed on a recent tip.

Rik <rik5>
Project MemberIn 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)
  •  

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

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    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
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup