opnsense-src/tests/sys/kqueue/libkqueue
Gleb Smirnoff 994bec47ee tests/kqueue: repair flaky test
The test arms timer for 500 msec and then sleeps 1 second and expects that
the timer would always fire exactly 2 times.  However, it has a chance to
legitimately fire only once.  This makes the test flaky.  Fix the test
reducing sleep time down to 495 msec.

The problem started to show up recently, and I attribute that to
626ea75ed2.  Before this revision sleep(3) was almost always sleeping
over 1000 msec, now it can sleep exactly 1000 msec.

Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D50996
2025-06-24 15:29:03 -07:00
..
common.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
config.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
main.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
proc.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
read.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
signal.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
timer.c tests/kqueue: repair flaky test 2025-06-24 15:29:03 -07:00
user.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
vnode.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00