[riot-commits] [RIOT-OS/RIOT] 02e069: tests/malloc_thread_safety: improve test

Francisco noreply at github.com
Tue Apr 13 11:00:37 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 02e069a35784e42fd8612f22718600dfcf542ed2
      https://github.com/RIOT-OS/RIOT/commit/02e069a35784e42fd8612f22718600dfcf542ed2
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2021-03-31 (Wed, 31 Mar 2021)

  Changed paths:
    M tests/malloc_thread_safety/Makefile
    M tests/malloc_thread_safety/main.c

  Log Message:
  -----------
  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`


  Commit: 2f28ad4f1cd32fa32912e77f934c7be419aa43f8
      https://github.com/RIOT-OS/RIOT/commit/2f28ad4f1cd32fa32912e77f934c7be419aa43f8
  Author: Francisco <femolina at uc.cl>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M tests/malloc_thread_safety/Makefile
    M tests/malloc_thread_safety/main.c

  Log Message:
  -----------
  Merge pull request #16231 from maribu/tests/malloc_thread_safety

tests/malloc_thread_safety: improve test


Compare: https://github.com/RIOT-OS/RIOT/compare/58ec967cc6ea...2f28ad4f1cd3


More information about the commits mailing list