selftests: futex: Add sys_futex_waitv() test
authorAndré Almeida <andrealmeid@collabora.com>
Thu, 23 Sep 2021 17:11:08 +0000 (14:11 -0300)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 7 Oct 2021 11:51:12 +0000 (13:51 +0200)
commit5e59c1d1c78c9cdd8834f3242db4a76f617fa4ad
tree56dc57bbddb5496600a6125d9ed81e76791698de
parentea7c45fde5aa3e761aaddb7902a31a95cb120e7b
selftests: futex: Add sys_futex_waitv() test

Create a new file to test the waitv mechanism. Test both private and
shared futexes. Wake the last futex in the array, and check if the
return value from futex_waitv() is the right index.

Signed-off-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210923171111.300673-20-andrealmeid@collabora.com
tools/testing/selftests/futex/functional/.gitignore
tools/testing/selftests/futex/functional/Makefile
tools/testing/selftests/futex/functional/futex_waitv.c [new file with mode: 0644]
tools/testing/selftests/futex/functional/run.sh
tools/testing/selftests/futex/include/futex2test.h [new file with mode: 0644]