fix a bug in the kernel obj verify function

This commit is contained in:
mculover666
2021-03-14 16:40:14 +08:00
parent ef489bf51f
commit 0c2af37b96
11 changed files with 3 additions and 21 deletions

View File

@@ -109,8 +109,10 @@ TEST test_tos_timer_stop(void)
err = tos_timer_stop(K_NULL);
ASSERT_EQ(err, K_ERR_OBJ_PTR_NULL);
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
err = tos_timer_stop(&test_timer_00);
ASSERT_EQ(err, K_ERR_OBJ_INVALID);
#endif
err = tos_timer_create(&test_timer_00, (k_tick_t)500u, (k_tick_t)0u,
test_timer_call_back_dummy, K_NULL,