linux/tools/testing/selftests/nolibc
Willy Tarreau ca283457b3 selftests/nolibc: avoid warnings during intptr tests
Recent fix ceb528feb7 ("selftests/nolibc: avoid gaps in test numbers")
had the annoying side effect of always returning skipped tests, which
are normally supposed to happen only when certain features are missing
to run the test (missing kernel options, toolchain not supporting
stack-protector etc). As such there are now always warnings. Let's
modify the test to not use the condition and instead use a ternary
expression to check the result.

Fixes: ceb528feb7 ("selftests/nolibc: avoid gaps in test numbers")
Cc: Thomas WeiÃ<9F>schuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2023-08-23 05:17:57 +02:00
..
.gitignore tools/nolibc: add libc-test binary 2023-06-09 11:33:05 -07:00
Makefile selftests/nolibc: allow test -include /path/to/nolibc.h 2023-08-23 04:40:22 +02:00
nolibc-test.c selftests/nolibc: avoid warnings during intptr tests 2023-08-23 05:17:57 +02:00