1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/malloc_thread_safety/Makefile
Marian Buschsieweke 02e069a357
tests/malloc_thread_safety: improve test
- fix false test failure on picolibc
    - For picolibc, the result of mallinfo().uordblks doesn't go back
      to zero after the first allocation. By adding `free(malloc(4))`
      before recording the pre-test mallinfo() value, this issues is
      worked arround
- increase test coverage to also cover realloc()
- ease testing with picolibc by allowing `make PICOLIBC=1 flash test`
2021-03-31 09:17:50 +02:00

15 lines
289 B
Makefile

include ../Makefile.tests_common
PICOLIBC ?= 0
ifneq (0,$(PICOLIBC))
FEATURES_REQUIRED += picolibc
endif
USEMODULE += xtimer
include $(RIOTBASE)/Makefile.include
# Only newlib and picolib provide mallinfo
ifeq (,$(filter newlib picolibc,$(USEMODULE)))
CFLAGS += -DNO_MALLINFO
endif