tests/float: reduce iterations to 1000

The linked bug report [1] says "2 out of 5 computations fail", so there
should be no need to wait tens of seconds.

[1] https://sourceware.org/legacy-ml/newlib/2010/msg00149.html
This commit is contained in:
Kaspar Schleiser 2020-07-29 12:23:45 +02:00
parent 2f6185ee97
commit 37d2e70aa6
2 changed files with 3 additions and 6 deletions

View File

@ -25,9 +25,9 @@
#include "board.h" #include "board.h"
/* as default we run the test 100k times */ /* as default we run the test 1k times */
#ifndef TEST_ITER #ifndef TEST_ITER
#define TEST_ITER (100000UL) #define TEST_ITER (1000UL)
#endif #endif
#define STEP (0.1) #define STEP (0.1)

View File

@ -9,13 +9,10 @@
import sys import sys
from testrunner import run from testrunner import run
# It takes 35 seconds on msp430, so add some margin
TIMEOUT = 45
def testfunc(child): def testfunc(child):
child.expect_exact("Testing floating point arithmetic...") child.expect_exact("Testing floating point arithmetic...")
child.expect_exact("[SUCCESS]", timeout=TIMEOUT) child.expect_exact("[SUCCESS]")
if __name__ == "__main__": if __name__ == "__main__":