From e0ec88e73881cfc8f27bcf5b29a72df0f502505a Mon Sep 17 00:00:00 2001 From: guoshichao Date: Wed, 13 Sep 2023 19:42:05 +0800 Subject: [PATCH] timer/timer_getoverrun: adjust the default errno from ENOSYS to EINVAL modify the default errno from ENOSYS to EINVAL can pass the ltp case: ltp_timer_getoverrun_speculative_6_1, ltp_timer_getoverrun_speculative_6_2, ltp_timer_getoverrun_speculative_6_3 Signed-off-by: guoshichao --- sched/timer/timer_getoverrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/timer/timer_getoverrun.c b/sched/timer/timer_getoverrun.c index 90dae4ae8f..41c5eab55c 100644 --- a/sched/timer/timer_getoverrun.c +++ b/sched/timer/timer_getoverrun.c @@ -76,7 +76,7 @@ int timer_getoverrun(timer_t timerid) { UNUSED(timerid); - set_errno(ENOSYS); + set_errno(EINVAL); return ERROR; }