]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/ipc: skip msgque test when MSG_COPY is unsupported
authorUYeol Jo <jouyeol8739@gmail.com>
Tue, 10 Feb 2026 13:53:59 +0000 (22:53 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:34 +0000 (21:19 -0700)
commit225ba47fb9ec17440781563ea729f3fe67f1b5b8
tree44f8dd6f0e63db271b9f5a6b28b61a1f925af9fe
parent513d08ace4e51d320ecc19e0a50b1192b217269b
selftests/ipc: skip msgque test when MSG_COPY is unsupported

msgque kselftest uses msgrcv(..., MSG_COPY) to copy messages.  When the
kernel is built without CONFIG_CHECKPOINT_RESTORE, prepare_copy() is
stubbed out and msgrcv() returns -ENOSYS.  The test currently reports this
as a failure even though it is simply a missing feature/configuration.

Skip the test when msgrcv() fails with ENOSYS.

Link: https://lkml.kernel.org/r/20260210135359.178636-1-jouyeol8739@gmail.com
Signed-off-by: UYeol Jo <jouyeol8739@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/ipc/msgque.c