[tip: locking/futex] futex: Skip test_futex_robust_unlock() if not supported
From: tip-bot2 for André Almeida
Date: Mon Nov 30 2026 - 16:07:01 EST
The following commit has been merged into the locking/futex branch of tip:
Commit-ID: 39cc4e512ebcd2a6d106d710285040a4e43c2dd9
Gitweb: https://git.kernel.org/tip/39cc4e512ebcd2a6d106d710285040a4e43c2dd9
Author: André Almeida <andrealmeid@xxxxxxxxxx>
AuthorDate: Sun, 15 Nov 2026 14:31:10 -03:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Mon, 30 Nov 2026 22:03:35 +01:00
futex: Skip test_futex_robust_unlock() if not supported
Skip test_futex_robust_unlock() if FUTEX_ROBUST_UNLOCK operation is not
supported.
Signed-off-by: André Almeida <andrealmeid@xxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20261115-tonyk-robust_futex-v8-1-a4fe47333a28@xxxxxxxxxx
---
tools/testing/selftests/futex/functional/robust_list.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/futex/functional/robust_list.c b/tools/testing/selftests/futex/functional/robust_list.c
index 895e6cf..5076a68 100644
--- a/tools/testing/selftests/futex/functional/robust_list.c
+++ b/tools/testing/selftests/futex/functional/robust_list.c
@@ -792,6 +792,9 @@ TEST_F(futex_op, test_futex_robust_unlock)
ret = sys_futex_robust_unlock(futex, FUTEX_ROBUST_UNLOCK | variant->op, tid,
&head.list_op_pending, variant->val3);
+ if (ret == -1 && errno == ENOSYS)
+ SKIP(return, "No support for FUTEX_ROBUST_UNLOCK");
+
ASSERT_EQ(ret, 0);
ASSERT_EQ(atomic_load(futex), 0);