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:		cb692380f1 ("timerfd: Expect periodic timer ...")
MFC after:	1 week
This commit is contained in:
Jake Freeland
2026-03-26 11:40:17 -05:00
parent 04d58d529a
commit 4b16ff49bf
+2 -1
View File
@@ -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);