Re: [PATCH RESEND] selftests: rtc: fix flaky date_read_loop test

From: Alexandre Belloni

Date: Mon Oct 19 2026 - 16:18:14 EST


On Tue, 29 Sep 2026 15:22:12 +0000, Wake Liu wrote:
> The test case rtc.date_read_loop in rtctest.c fails intermittently because
> it checks that the RTC time does not advance by more than 1 second per loop
> iteration. However, the loop sleeps for 11ms via nanosleep(), and if the
> test thread is descheduled by the OS scheduler (e.g., under heavy system
> load in a VM), more than 1 second can elapse between consecutive RTC reads.
> This causes the next RTC time read to be 2 or more seconds ahead of the
> previous read, triggering a test assertion failure.
>
> [...]

Applied, thanks!

[1/1] selftests: rtc: fix flaky date_read_loop test
https://git.kernel.org/abelloni/c/82e7babfb39f

Best regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com