]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/nolibc: try to read from stdin in readv_zero test
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 6 Jan 2026 11:44:57 +0000 (12:44 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Sun, 11 Jan 2026 10:17:07 +0000 (11:17 +0100)
commit4203c6fb5e9d2e4fb9a48b421d92efd4429a4d55
tree0d326c2a9e05bac4fd226fe37200e5f48e1fe6a1
parent6b6dbf3e4ecfd7d1086bd7cd8b31ca8e45d4dc1f
selftests/nolibc: try to read from stdin in readv_zero test

When stdout is redirected to a file this test fails.
This happens when running through the kselftest runner since
commit d9e6269e3303 ("selftests/run_kselftest.sh: exit with
error if tests fail").

For consistency with other tests that read from a file descriptor,
switch to stdin over stdout. The tests are still brittle against
a redirected stdin, but at least they are now consistently so.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260106-nolibc-selftests-v1-1-f82101c2c505@weissschuh.net
tools/testing/selftests/nolibc/nolibc-test.c