[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49166] "system.tst" fails under Windows
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #49166] "system.tst" fails under Windows |
Date: |
Sat, 24 Sep 2016 20:37:56 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
Follow-up Comment #2, bug #49166 (project octave):
Here is an easier way to maybe reproduce this behavior.
The following script basically does "test system.tst" in a loop. It NEVER
makes it to the end on my Win-7 machine with Octave-4.2.0-rc2. But this very
same script ALWAYS finishes just fine on the same PC, if I use the
Octave-4.0.3 release instead.
more off
cd "C:/Octave/Octave-4.2.0-rc2/share/octave/4.2.0-rc2/etc/tests/fixed"
for t = 1:200
disp("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
disp(num2str(t));
disp("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
#result = test("system.tst", "verbose");
#if (result != true)
# disp("BUG OCCURED!");
# break
#endif
#disp("Test PASSED");
### use code from test directly, to speed things up:
[t1, u1, s1] = cputime ();
for i = 1:200
sin (i);
endfor
[t2, u2, s2] = cputime ();
assert (t1, u1 + s1);
assert (t2 == u2 + s2);
assert (t2 >= t1);
assert (u2 >= u2);
assert (s2 >= s2);
endfor
I have observed the following discrepancies on my PC so far (observed time,
absolute error):
* 13.1105 , 1.7764e-15
* 25.4753 , 3.5527e-15
* (some others as well)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49166>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/