selftests/nolibc: gettid: restore for glibc and musl
authorZhangjin Wu <falcon@tinylab.org>
Fri, 7 Jul 2023 18:25:11 +0000 (02:25 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
commit79b4f68e9e245dba34f7acc4e1e26d8df5f9a4f8
treec933d7868d42a2fc8945f910fa55a1fa0ddad35d
parent46cf630c53f359bb9cfe7f487c3a878068fd373d
selftests/nolibc: gettid: restore for glibc and musl

As the gettid manpage [1] shows, glibc 2.30 has gettid support, so,
let's enable the test for glibc >= 2.30.

gettid works on musl too.

[1]: https://man7.org/linux/man-pages/man2/gettid.2.html

Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c