提交 9e558ab1 编写于 作者: G guozhanxin

【utest】fix TC_FAIL_LIST_MARK_FAILED 下标计算错误的问题

上级 67762dc0
...@@ -54,8 +54,8 @@ static struct utest local_utest = {UTEST_PASSED, 0, 0}; ...@@ -54,8 +54,8 @@ static struct utest local_utest = {UTEST_PASSED, 0, 0};
#endif #endif
#define TC_FAIL_LIST_SIZE (RT_ALIGN(tc_num, 8) / 8) #define TC_FAIL_LIST_SIZE (RT_ALIGN(tc_num, 8) / 8)
#define TC_FAIL_LIST_MARK_FAILED(index) (tc_fail_list[RT_ALIGN(index, 8) / 8] |= (1UL << (index % 8))) #define TC_FAIL_LIST_MARK_FAILED(index) (tc_fail_list[index / 8] |= (1UL << (index % 8)))
#define TC_FAIL_LIST_IS_FAILED(index) (tc_fail_list[RT_ALIGN(index, 8) / 8] & (1UL << (index % 8))) #define TC_FAIL_LIST_IS_FAILED(index) (tc_fail_list[index / 8] & (1UL << (index % 8)))
void utest_log_lv_set(rt_uint8_t lv) void utest_log_lv_set(rt_uint8_t lv)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册