* [PATCH] selftests: ipc: Change operation not supported error number
@ 2026-07-20 20:40 Paul White
0 siblings, 0 replies; only message in thread
From: Paul White @ 2026-07-20 20:40 UTC (permalink / raw)
To: shuah
Cc: akpm, jouyeol8739, reddybalavignesh9979, richard.weiyang,
linux-kselftest, linux-kernel, Paul White
The application doesn't know what ENOTSUPP means, as it is a
kernelspace error code and the application doesn't have access to
kernelspace error codes.I used EOPNOTSUPP in its place as that is
an error number the application will recognize and know an operation is
being attempted that it cannot support.
Signed-off-by: Paul White <paul.white.kernel@gmail.com>
---
tools/testing/selftests/ipc/msgque.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/ipc/msgque.c b/tools/testing/selftests/ipc/msgque.c
index 82f73cdae120..4b4c1abfac0f 100644
--- a/tools/testing/selftests/ipc/msgque.c
+++ b/tools/testing/selftests/ipc/msgque.c
@@ -161,7 +161,7 @@ int dump_queue(struct msgque_data *msgque)
ret = msgrcv(msgque->msq_id, &msgque->messages[i].mtype,
MAX_MSG_SIZE, i, IPC_NOWAIT | MSG_COPY);
if (ret < 0) {
- if (errno == ENOSYS)
+ if (errno == EOPNOTSUPP)
ksft_exit_skip("MSG_COPY not supported\n");
ksft_test_result_fail("Failed to copy IPC message: %m (%d)\n", errno);
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-20 20:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20 20:40 [PATCH] selftests: ipc: Change operation not supported error number Paul White
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox