diff options
| author | Jake Freeland <jfree@FreeBSD.org> | 2026-03-26 16:40:17 +0000 |
|---|---|---|
| committer | Jake Freeland <jfree@FreeBSD.org> | 2026-03-26 16:47:32 +0000 |
| commit | 4b16ff49bf4bf875997fe4c80a0afc0d440b7aac (patch) | |
| tree | 359ef9af596d64d628148ec8d79fcb9128d90881 | |
| parent | 04d58d529a61f3bba2c1a843bc2793923a005759 (diff) | |
timerfd: Guard expected performance failure
During the timerfd__periodic_timer_performance test, only expect
failures when the expiration count is less than 400000000. This
prevents the test from being reported as a true failure in environments
where scheduling latency is high enough to delay timerfd wakeups.
Fixes: cb692380f1e0 ("timerfd: Expect periodic timer ...")
MFC after: 1 week
| -rw-r--r-- | tests/sys/kern/timerfd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sys/kern/timerfd.c b/tests/sys/kern/timerfd.c index cacc1d9aafa9..277516c3d9e2 100644 --- a/tests/sys/kern/timerfd.c +++ b/tests/sys/kern/timerfd.c @@ -737,7 +737,8 @@ ATF_TC_BODY(timerfd__periodic_timer_performance, tc) uint64_t timeouts; ATF_REQUIRE(read(timerfd, &timeouts, sizeof(timeouts)) == (ssize_t)sizeof(timeouts)); - atf_tc_expect_fail("https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294053"); + if (timeouts < 400000000) + atf_tc_expect_fail("https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294053"); ATF_REQUIRE_MSG(timeouts >= 400000000, "%ld", (long)timeouts); ATF_REQUIRE(close(timerfd) == 0); |
