From 4d487f8d93a983fa55351e70a9eaaf63184dba7c Mon Sep 17 00:00:00 2001 From: wangchengdong Date: Tue, 27 Jan 2026 11:21:06 +0800 Subject: [PATCH] ostest/hrtimer: sync hrtimer ostest with latest hritmer update sync hrtimer ostest with latest hritmer update Signed-off-by: Chengdong Wang --- testing/ostest/hrtimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/ostest/hrtimer.c b/testing/ostest/hrtimer.c index d503f878f67..48ed46b9904 100644 --- a/testing/ostest/hrtimer.c +++ b/testing/ostest/hrtimer.c @@ -223,7 +223,7 @@ static void * hrtimer_test_thread(void *arg) /* Cancel timer */ ret = hrtimer_cancel(&timer); - HRTIMER_TEST(ret, OK); + HRTIMER_TEST(ret >= 0, true); /* Start timer with fixed period */ @@ -241,7 +241,7 @@ static void * hrtimer_test_thread(void *arg) /* Cancel the timer synchronously */ ret = hrtimer_cancel_sync(&timer); - HRTIMER_TEST(ret, OK); + HRTIMER_TEST(ret >= 0, true); return NULL; }