From 646c6d67c0f519e2ece0acc18abe1165f4f2edbe Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Fri, 19 Oct 2018 11:08:38 +0200 Subject: [PATCH] tests/libfixmath: Add delay at start of test The delay allows allows time for the `make term` to connect and start flushing the output buffer before the buffer overflows. --- tests/libfixmath/Makefile | 3 ++- tests/libfixmath/main.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/libfixmath/Makefile b/tests/libfixmath/Makefile index 7b2316e092..ce035be05c 100644 --- a/tests/libfixmath/Makefile +++ b/tests/libfixmath/Makefile @@ -2,7 +2,8 @@ include ../Makefile.tests_common USEPKG += libfixmath USEMODULE += libfixmath +USEMODULE += xtimer -TEST_ON_CI_WHITELIST += native +TEST_ON_CI_WHITELIST += all include $(RIOTBASE)/Makefile.include diff --git a/tests/libfixmath/main.c b/tests/libfixmath/main.c index a5ec3de2a4..9a763a003e 100644 --- a/tests/libfixmath/main.c +++ b/tests/libfixmath/main.c @@ -30,6 +30,7 @@ #include +#include "xtimer.h" #include "fix16.h" #ifndef M_PI @@ -184,6 +185,8 @@ static void unary_ops(void) int main(void) { + /* Delay output to prevent flooding of buffer */ + xtimer_sleep(1); puts("Unary."); unary_ops();