octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59097] Warning during "test qr.cc-tst" due to


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #59097] Warning during "test qr.cc-tst" due to invalid function handle
Date: Fri, 11 Sep 2020 04:40:18 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36 Edg/85.0.564.44

URL:
  <https://savannah.gnu.org/bugs/?59097>

                 Summary: Warning during "test qr.cc-tst" due to invalid
function handle
                 Project: GNU Octave
            Submitted by: mmuetzel
            Submitted on: Fri 11 Sep 2020 10:40:16 AM CEST
                Category: Test Suite
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.0.90
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

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?




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59097>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]