selftest/futex: Make the error check more precise for futex_numa_mpol
authorAndré Almeida <andrealmeid@igalia.com>
Mon, 15 Sep 2025 21:26:28 +0000 (23:26 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 17 Sep 2025 17:48:44 +0000 (19:48 +0200)
commitc1c863457780adfb2e29fa9a85897179ad3903e6
treea8e1f08d8b3563aee31dbcdc2569efe5460ddae7
parent237bfb76c90b184f57bb18fe35ff366c19393dc8
selftest/futex: Make the error check more precise for futex_numa_mpol

Instead of just checking if the syscall failed as expected, check as
well if the returned error code matches the expected error code.

[ bigeasy: reword the commmit message ]

Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Waiman Long <longman@redhat.com>
tools/testing/selftests/futex/functional/futex_numa_mpol.c