This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new e0ec88e738 timer/timer_getoverrun: adjust the default errno from
ENOSYS to EINVAL
e0ec88e738 is described below
commit e0ec88e73881cfc8f27bcf5b29a72df0f502505a
Author: guoshichao <[email protected]>
AuthorDate: Wed Sep 13 19:42:05 2023 +0800
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 <[email protected]>
---
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;
}