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

[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 21:49:59 -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:             In Progress => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #4:

I pushed a fix on stable and default for this issue.

https://hg.savannah.gnu.org/hgweb/octave/rev/261d23b8933b

I was able to add some code to '__run_test_suite__' to print all random state
values, and diff the outputs from run to run. Now every run of 'make check'
does have a different random state from start to finish.

This may expose some more tolerance errors in some functions in the future,
since all tests under scripts and test using any rand function were being run
with the same values every time until now.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53254>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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