Re: [PATCH] selftests: breakpoints: Skip step_after_suspend_test on systems without a wakeup capable RTC

From: Anirudh Srinivasan

Date: Fri Oct 16 2026 - 22:07:29 EST


Hi all,

On Fri, Oct 2, 2026 at 4:55 PM Anirudh Srinivasan
<asrinivasan@xxxxxxxxxxxxxxxxxxx> wrote:
>
> This test puts a system into suspend state and uses CLOCK_BOOTTIME_ALARM
> to wake the system up. This alarm can only wake up systems that have a
> wakeup capable RTC source. On systems without such an RTC (for example,
> most RISC-V boards), this test puts the system into suspend and just
> hangs, requiring power cycling.
>
> clock_getres(CLOCK_BOOTTIME_ALARM) fails with EINVAL on such systems,
> so add a check based on that to skip this test on systems without a
> wakeup capable RTC source.
>
> Signed-off-by: Anirudh Srinivasan <asrinivasan@xxxxxxxxxxxxxxxxxxx>
> ---
> tools/testing/selftests/breakpoints/step_after_suspend_test.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)

Gentle ping on this.