bugGNU Octave - Bugs: bug #59097, Warning during "test...

 
 

bug #59097: Warning during "test qr.cc-tst" due to invalid function handle

Submitted by:  Markus Mützel <mmuetzel>
Submitted on:  Fri 11 Sep 2020 08:40:16 AM UTC  
 
Category:  Test Suite Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  6.0.90 Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sat 12 Sep 2020 10:16:32 AM UTC, comment #2: 

The warning disappeared for me.

Closing as fixed.

Markus Mützel <mmuetzel>
Project Member
Fri 11 Sep 2020 11:30:58 PM UTC, comment #1: 

I pushed the following changeset on stable and merged with default:

http://hg.savannah.gnu.org/hgweb/octave/rev/2c367a9c9660

John W. Eaton <jwe>
Project Administrator
Fri 11 Sep 2020 08:40:16 AM UTC, original submission:  

When running "test qr.cc-tst", the following warning is issued (see also bug #57033, starting at comment #22 there):
https://savannah.gnu.org/bugs/index.php?57033#comment22

>> test qr.cc-tst

PASSES 57 out of 57 tests
warning: onCleanup: error caught while executing cleanup function:
'restore_rand_states' undefined near line 7, column 7

The "onCleanup" function is set up like this (before the actual tests):

%!function restore_rand_states (state)
%!  rand ("state", state.rand);
%!  randn ("state", state.randn);
%!endfunction
%!shared old_state, restore_state
%! ## Save and restore the states of both random number generators that are
%! ## tested by the unit tests in this file.
%! old_state.rand = rand ("state");
%! old_state.randn = randn ("state");
%! restore_state = onCleanup (@() restore_rand_states (old_state));

Is this an issue with how the BISTs are written?
Or is there a more general issue with function handles?

Markus Mützel <mmuetzel>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

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 jwe (Posted a comment)
  • -email is unavailable- added by mmuetzel (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.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-12 mmuetzel StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2020-09-11 jwe StatusConfirmed => Ready For Test

    Back to the top


    Powered by Savane 3.7