]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: ntsync: Add some tests for semaphore state.
authorElizabeth Figura <zfigura@codeweavers.com>
Fri, 13 Dec 2024 19:34:57 +0000 (13:34 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2025 12:18:11 +0000 (13:18 +0100)
commit7f853a252cdefa9f574c2dce4f9f38a7c10d6b5a
treebe93503b70bb204ff087b47dd9be047c8c716ef5
parenta138179a59d47690b069fbded1be12f47648ef07
selftests: ntsync: Add some tests for semaphore state.

Wine has tests for its synchronization primitives, but these are more accessible
to kernel developers, and also allow us to test some edge cases that Wine does
not care about.

This patch adds tests for semaphore-specific ioctls NTSYNC_IOC_SEM_POST and
NTSYNC_IOC_SEM_READ, and waiting on semaphores.

Signed-off-by: Elizabeth Figura <zfigura@codeweavers.com>
Link: https://lore.kernel.org/r/20241213193511.457338-17-zfigura@codeweavers.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/drivers/ntsync/.gitignore [new file with mode: 0644]
tools/testing/selftests/drivers/ntsync/Makefile [new file with mode: 0644]
tools/testing/selftests/drivers/ntsync/config [new file with mode: 0644]
tools/testing/selftests/drivers/ntsync/ntsync.c [new file with mode: 0644]