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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user