timerfd: Add tests

Take Jan Kokemuller's timerfd tests from the epoll-shim project,
stripping out code that isn't directly related to FreeBSD.

Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D55789
MFC after:		2 weeks
This commit is contained in:
Jake Freeland
2026-03-20 01:31:30 -05:00
parent 2eb0a88891
commit 834c1ba793
2 changed files with 1321 additions and 0 deletions
+3
View File
@@ -53,6 +53,9 @@ ATF_TESTS_C+= subr_physmem_test
PLAIN_TESTS_C+= subr_unit_test PLAIN_TESTS_C+= subr_unit_test
ATF_TESTS_C+= sysctl_kern_proc ATF_TESTS_C+= sysctl_kern_proc
ATF_TESTS_C+= sys_getrandom ATF_TESTS_C+= sys_getrandom
ATF_TESTS_C+= timerfd
CFLAGS.timerfd+= -I${.CURDIR}
LIBADD.timerfd+= pthread
ATF_TESTS_C+= tty_pts ATF_TESTS_C+= tty_pts
ATF_TESTS_C+= unix_dgram ATF_TESTS_C+= unix_dgram
ATF_TESTS_C+= unix_passfd_dgram ATF_TESTS_C+= unix_passfd_dgram
File diff suppressed because it is too large Load Diff