]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/filesystems: Assume that TIOCGPTPEER is defined
authorMark Brown <broonie@kernel.org>
Fri, 27 Feb 2026 15:20:35 +0000 (15:20 +0000)
committerChristian Brauner <brauner@kernel.org>
Mon, 2 Mar 2026 10:08:20 +0000 (11:08 +0100)
commitf7df26875b9a07d756a5f4cac26dac95bf1d9de1
tree73224725d6472dc847994d35be862524e8739ad4
parent1a0c73b2aaf2198f36d8156b78e083c58806d47b
selftests/filesystems: Assume that TIOCGPTPEER is defined

The devpts_pts selftest has an ifdef in case an architecture does not
define TIOCGPTPEER, but the handling for this is broken since we need
errno to be set to EINVAL in order to skip the test as we should. Given
that this ioctl() has been defined since v4.15 we may as well just assume
it's there rather than write handling code which will probably never get
used.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20260227-selftests-filesystems-devpts-tiocgptpeer-v3-1-07db4d85d5aa@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/filesystems/devpts_pts.c