[PATCH v7 01/10] futex: Skip test_futex_robust_unlock() if not supported
From: André Almeida
Date: Fri Sep 25 2026 - 13:54:00 EST
Skip test_futex_robust_unlock() if FUTEX_ROBUST_UNLOCK operation is not
supported.
Signed-off-by: André Almeida <andrealmeid@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 87217c549361..ddb610149857 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(*futex, 0);
--
2.55.0