git: 6a13864e02b0 - stable/14 - timerfd: Guard expected performance failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Apr 2026 15:27:32 UTC
The branch stable/14 has been updated by jfree:
URL: https://cgit.FreeBSD.org/src/commit/?id=6a13864e02b061b67808f2d1789de51c83aeea90
commit 6a13864e02b061b67808f2d1789de51c83aeea90
Author: Jake Freeland <jfree@FreeBSD.org>
AuthorDate: 2026-03-26 16:40:17 +0000
Commit: Jake Freeland <jfree@FreeBSD.org>
CommitDate: 2026-04-03 15:26:56 +0000
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
(cherry picked from commit 4b16ff49bf4bf875997fe4c80a0afc0d440b7aac)
---
tests/sys/kern/timerfd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);