From b5906c2aa4c51cb99a8dfa4561acec75ae08211f Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sun, 20 Oct 2019 15:23:03 +0200 Subject: [PATCH] tests/pthread*: blacklist boards with low RAM The pthread tests dynamically allocate memory for the thread stacks. Therefore while compilation succeeds, they will fail to run on these low memory boards. Static allocation of thread stacks is an option to make those tests work for those boards (confirmed for `tests/pthread`), but it would change the nature of the tests. --- tests/pthread/Makefile | 5 +++++ tests/pthread_barrier/Makefile | 5 +++++ tests/pthread_cleanup/Makefile | 5 +++++ tests/pthread_cooperation/Makefile | 5 +++++ tests/pthread_tls/Makefile | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/tests/pthread/Makefile b/tests/pthread/Makefile index 56fab8e685..3ac8b293a6 100644 --- a/tests/pthread/Makefile +++ b/tests/pthread/Makefile @@ -3,4 +3,9 @@ include ../Makefile.tests_common USEMODULE += posix_headers USEMODULE += pthread +# The test compiles, but these boards have too little RAM for +# dynamic allocation of thread stacks +BOARD_BLACKLIST := arduino-nano arduino-duemilanove \ + arduino-uno nucleo-f031k6 stm32f030f4-demo + include $(RIOTBASE)/Makefile.include diff --git a/tests/pthread_barrier/Makefile b/tests/pthread_barrier/Makefile index 4e5d98ecc2..13409c8d92 100644 --- a/tests/pthread_barrier/Makefile +++ b/tests/pthread_barrier/Makefile @@ -5,4 +5,9 @@ USEMODULE += pthread USEMODULE += random USEMODULE += xtimer +# The test compiles, but these boards have too little RAM for +# dynamic allocation of thread stacks +BOARD_BLACKLIST := arduino-nano arduino-duemilanove \ + arduino-uno nucleo-f031k6 stm32f030f4-demo + include $(RIOTBASE)/Makefile.include diff --git a/tests/pthread_cleanup/Makefile b/tests/pthread_cleanup/Makefile index a655477524..8b14b44af2 100644 --- a/tests/pthread_cleanup/Makefile +++ b/tests/pthread_cleanup/Makefile @@ -2,4 +2,9 @@ include ../Makefile.tests_common USEMODULE += pthread +# The test compiles, but these boards have too little RAM for +# dynamic allocation of thread stacks +BOARD_BLACKLIST := arduino-nano arduino-duemilanove \ + arduino-uno nucleo-f031k6 stm32f030f4-demo + include $(RIOTBASE)/Makefile.include diff --git a/tests/pthread_cooperation/Makefile b/tests/pthread_cooperation/Makefile index b1b6039f65..184da9ce8c 100644 --- a/tests/pthread_cooperation/Makefile +++ b/tests/pthread_cooperation/Makefile @@ -6,6 +6,11 @@ ifneq (,$(filter nucleo-f303k8,$(BOARD))) CFLAGS += -DTHREAD_STACKSIZE_DEFAULT=512 endif +# The test compiles, but these boards have too little RAM for +# dynamic allocation of thread stacks +BOARD_BLACKLIST := arduino-nano arduino-duemilanove \ + arduino-uno nucleo-f031k6 stm32f030f4-demo + USEMODULE += posix_headers USEMODULE += pthread diff --git a/tests/pthread_tls/Makefile b/tests/pthread_tls/Makefile index 56fab8e685..3ac8b293a6 100644 --- a/tests/pthread_tls/Makefile +++ b/tests/pthread_tls/Makefile @@ -3,4 +3,9 @@ include ../Makefile.tests_common USEMODULE += posix_headers USEMODULE += pthread +# The test compiles, but these boards have too little RAM for +# dynamic allocation of thread stacks +BOARD_BLACKLIST := arduino-nano arduino-duemilanove \ + arduino-uno nucleo-f031k6 stm32f030f4-demo + include $(RIOTBASE)/Makefile.include