selftests/nolibc: disable brk()/sbrk() tests on musl
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 23 Apr 2024 22:15:33 +0000 (00:15 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sat, 29 Jun 2024 07:44:53 +0000 (09:44 +0200)
commit6cada28465f692a730051c9586a324926c034152
tree7449a63327b6adf9cbd11d2bd74fe1f699ad7b00
parent92098b1c10cb29bcc6fa0908a766dc9e16b1e889
selftests/nolibc: disable brk()/sbrk() tests on musl

On musl calls to brk() and sbrk() always fail with ENOMEM.
Detect this and skip the tests on musl.

Tested on glibc 2.39 and musl 1.2.5 in addition to nolibc.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20240424-nolibc-musl-brk-v1-1-b49882dd9a93@weissschuh.net
tools/testing/selftests/nolibc/nolibc-test.c