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-apps.git
commit a16c5451343528e6633be08088ea5170461a8e66 Author: ouyangxiangzhen <[email protected]> AuthorDate: Mon Jul 28 14:12:18 2025 +0800 testing/drivers: Fixed the wrong test-case. This commit fixed the wrong-test case where the time is acquired after the timer being set, leading to the assertion failure. Signed-off-by: ouyangxiangzhen <[email protected]> --- testing/drivers/drivertest/drivertest_posix_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/drivers/drivertest/drivertest_posix_timer.c b/testing/drivers/drivertest/drivertest_posix_timer.c index a9db327b8..469ecc198 100644 --- a/testing/drivers/drivertest/drivertest_posix_timer.c +++ b/testing/drivers/drivertest/drivertest_posix_timer.c @@ -196,11 +196,11 @@ static void drivertest_posix_timer(FAR void **state) /* Start the timer */ + posix_timer_state->tim = get_timestamp(); + ret = timer_settime(timerid, 0, &(posix_timer_state->it), NULL); assert_return_code(ret, OK); - posix_timer_state->tim = get_timestamp(); - /* Get the timer status */ ret = timer_gettime(timerid, &it);
