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.
This commit is contained in:
MrKevinWeiss 2018-10-19 11:08:38 +02:00
parent b88de338d5
commit 646c6d67c0
2 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,8 @@ include ../Makefile.tests_common
USEPKG += libfixmath USEPKG += libfixmath
USEMODULE += libfixmath USEMODULE += libfixmath
USEMODULE += xtimer
TEST_ON_CI_WHITELIST += native TEST_ON_CI_WHITELIST += all
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include

View File

@ -30,6 +30,7 @@
#include <stdio.h> #include <stdio.h>
#include "xtimer.h"
#include "fix16.h" #include "fix16.h"
#ifndef M_PI #ifndef M_PI
@ -184,6 +185,8 @@ static void unary_ops(void)
int main(void) int main(void)
{ {
/* Delay output to prevent flooding of buffer */
xtimer_sleep(1);
puts("Unary."); puts("Unary.");
unary_ops(); unary_ops();