Browse Source

tests: adapt posix tests to xtimer sleep/usleep

cc430
Kaspar Schleiser 7 years ago
parent
commit
e051a388d9
  1. 6
      tests/posix_sleep/Makefile
  2. 2
      tests/posix_sleep/main.c
  3. 2
      tests/pthread/Makefile
  4. 2
      tests/pthread_cooperation/Makefile
  5. 2
      tests/pthread_tls/Makefile

6
tests/posix_sleep/Makefile

@ -1,12 +1,6 @@
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

2
tests/posix_sleep/main.c

@ -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");

2
tests/pthread/Makefile

@ -7,6 +7,4 @@ BOARD_BLACKLIST := arduino-mega2560
USEMODULE += posix
USEMODULE += pthread
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include

2
tests/pthread_cooperation/Makefile

@ -7,6 +7,4 @@ BOARD_BLACKLIST := arduino-mega2560
USEMODULE += posix
USEMODULE += pthread
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include

2
tests/pthread_tls/Makefile

@ -7,6 +7,4 @@ BOARD_BLACKLIST := arduino-mega2560
USEMODULE += posix
USEMODULE += pthread
DISABLE_MODULE += auto_init
include $(RIOTBASE)/Makefile.include

Loading…
Cancel
Save