From 37d2e70aa659d4f754d83b961095178e4156a138 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 29 Jul 2020 12:23:45 +0200 Subject: [PATCH] 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 --- tests/float/main.c | 4 ++-- tests/float/tests/01-run.py | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/float/main.c b/tests/float/main.c index 55cd4d238f..47a7bc4b81 100644 --- a/tests/float/main.c +++ b/tests/float/main.c @@ -25,9 +25,9 @@ #include "board.h" -/* as default we run the test 100k times */ +/* as default we run the test 1k times */ #ifndef TEST_ITER -#define TEST_ITER (100000UL) +#define TEST_ITER (1000UL) #endif #define STEP (0.1) diff --git a/tests/float/tests/01-run.py b/tests/float/tests/01-run.py index a20a7b711a..3fcec4eb93 100755 --- a/tests/float/tests/01-run.py +++ b/tests/float/tests/01-run.py @@ -9,13 +9,10 @@ import sys from testrunner import run -# It takes 35 seconds on msp430, so add some margin -TIMEOUT = 45 - def testfunc(child): child.expect_exact("Testing floating point arithmetic...") - child.expect_exact("[SUCCESS]", timeout=TIMEOUT) + child.expect_exact("[SUCCESS]") if __name__ == "__main__":