Skip to content
Snippets Groups Projects
Commit e051a388 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

tests: adapt posix tests to xtimer sleep/usleep

parent 8a61ef4c
No related branches found
No related tags found
No related merge requests found
APPLICATION = posix_sleep
include ../Makefile.tests_common
BOARD_BLACKLIST := arduino-mega2560
# arduino-mega2560: warning: iteration 2u invokes undefined behavior
# [-Waggressive-loop-optimizations]
USEMODULE += posix
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include
......@@ -25,7 +25,7 @@ int main(void)
{
puts("usleep 1 x 1000*1000");
for (int i = 0; i < 10; i++) {
useconds_t us = i*1000*1000;
useconds_t us = i*1000u*1000u;
printf("calling usleep(%u)\n", (unsigned int) us);
usleep(us);
puts("wake up");
......
......@@ -7,6 +7,4 @@ BOARD_BLACKLIST := arduino-mega2560
USEMODULE += posix
USEMODULE += pthread
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include
......@@ -7,6 +7,4 @@ BOARD_BLACKLIST := arduino-mega2560
USEMODULE += posix
USEMODULE += pthread
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include
......@@ -7,6 +7,4 @@ BOARD_BLACKLIST := arduino-mega2560
USEMODULE += posix
USEMODULE += pthread
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment