octave-maintainers
[Top][All Lists]
Advanced

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

Re: problem with failing unit test in stk : any ideas ?


From: Rik
Subject: Re: problem with failing unit test in stk : any ideas ?
Date: Sat, 31 Oct 2015 09:09:48 -0700

10/31/15

I took a look at this and it is always repeatable, but will be very
difficult to determine the ultimate root cause.  In dealing with this I
would suggest the following parable.  A man walks into the doctor's office
and says, "Doc, it hurts when I stick a knife in my side".  The doctor
responds, "So stop doing that".  I don't have time or interest to wade for
hours through this issue.  For starters, the %!test mechanism is convoluted
and uses eval to bring temporary functions into existence.  And even the
help of hidden debug functions like __current_scope__ and
__dump_symtab_info__ isn't going to get you very far.

On the other hand, I do have a solution that works even if I can't tell you
the exact mechanism for it.  By clearing the "function" which is really
just a script the issue is resolved.

%!test HOMOSCEDASTIC_NOISE = false;  stk_example_kb09;  close all; clear -f
stk_example_kb09;

Or if this needs to be done generally to all of the stk BIST tests then it
might be cleaner to just use 'clear -f;'  I tested that and verified it
works as well.

%!test HOMOSCEDASTIC_NOISE = false;  stk_example_kb09;  close all; clear -f;

Cheers,
Rik



reply via email to

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