]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kqueue tests: Add new EVFILT_TIMER regression tests from upstream
authorMark Johnston <markj@FreeBSD.org>
Wed, 25 May 2022 00:16:32 +0000 (20:16 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 25 May 2022 00:16:32 +0000 (20:16 -0400)
commitd6d4f9b45e0be306bdaf53b2133b2cd0f7642167
tree9bf31e11f4e4653abb1073c6675660f7b73ae119
parent524dadf7a8725dea144571843e611dbdbd59d668
kqueue tests: Add new EVFILT_TIMER regression tests from upstream

One of the tests exposes the regression reported in PR 264131.

One test is disabled because FreeBSD does not support setting EV_ONESHOT
on an already-added periodic timer.  Though, in this case the flag is
simply ignored, which isn't ideal.

One test is slightly modified to set EV_ADD when reconfiguring a
disabled timer per some commentary in PR 258412.

Ideally we would re-import the test suite from libkqueue but there is a
fair bit of divergence so this will require some effort.  This just gets
us one small step closer while increasing test coverage.

PR: 258412
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
tests/sys/kqueue/libkqueue/config.h
tests/sys/kqueue/libkqueue/timer.c