[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53254] tests: several unit tests set a random
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #53254] tests: several unit tests set a random "seed" or "state" without restoring it |
Date: |
Thu, 1 Mar 2018 18:04:29 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0 |
Update of bug #53254 (project octave):
Status: Confirmed => In Progress
Assigned to: None => mtmiller
Release: dev => 4.2.1
_______________________________________________________
Follow-up Comment #3:
I have a partial fix for the problems in conv2.cc, eigs.m, and median.m.
For conv2.cc, unfortunately, I have to use unwind_protect because it needs to
restore both "seed" and "state" in the correct order. The fact that I can't
get the test to pass at all by trying to switch it to rand('state', ...)
probably means that the test is extremely fragile and should probably be
rewritten anyway. I'm adding a FIXME describing that for later.
I am now looking at rand.cc, which exhaustively checks all the rand* functions
(as it should), and returns with every random generator in a fixed state.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53254>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/