Files
linux/tools/testing/selftests/nolibc/nolibc-test-ignore-errno.c
Thomas Weißschuh 5662ec000d selftests/nolibc: validate NOLIBC_IGNORE_ERRNO compilation
When NOLIBC_IGNORE_ERRNO is set, various bits of nolibc are disabled.

Make sure that all the ifdeffery does not result in any compilation
errors by compiling a dummy source file.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260311-nolibc-err-h-v1-2-735a9de7f15d@weissschuh.net
2026-03-20 17:58:28 +01:00

7 lines
151 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#define NOLIBC_IGNORE_ERRNO
/* Include all of nolibc and make sure everything compiles */
#include <stdlib.h>