[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: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #53254] tests: several unit tests set a random "seed" or "state" without restoring it |
Date: |
Thu, 1 Mar 2018 22:29:27 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0 |
Follow-up Comment #5, bug #53254 (project octave):
@Mike <<<This may expose some more tolerance errors in some functions in the
future>>>
This did not take long:
http://buildbot.octave.org:8010/builders/gcc-fedora/builds/1353/steps/test/logs/stdio
>>>>> processing
/home/buildbotu/fc25-x86_64/gcc-fedora/src/scripts/sparse/pcg.m
***** test
## solve small diagonal system
N = 10;
A = diag ([1:N]); b = rand (N, 1);
X = A \ b; # X is the true solution
[x, flag] = pcg (A, b, [], N+1);
assert (norm (x - X) / norm (X), 0, 1e-10);
assert (flag, 0);
!!!!! test failed
ASSERT errors for: assert (norm (x - X) / norm (X),0,1e-10)
Location | Observed | Expected | Reason
() 3.9945e-07 0 Abs err 3.9945e-07 exceeds tol 1e-10
by 4e-07
Looks pretty gross. I will file a separate bug report.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53254>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/