summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-08-25 07:37:42 +0800
committerGitHub <[email protected]>2021-08-25 07:37:42 +0800
commitc80031d9d2f3c4c2e55e72e5911ff9078ae04ba8 (patch)
tree95d921d62b5c9d724dce85ba344bb807b351a1a6 /components
parent67762dc0b0a71f8443cd0d423895978100bd090e (diff)
parentfe4bec08a561571623cdc4f48b24c0ec90a365a2 (diff)
Merge pull request #4974 from Guozhanxin/ci_timer
添加更多的测试用例到 Autotest CI
Diffstat (limited to 'components')
-rw-r--r--components/utilities/utest/utest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/utilities/utest/utest.c b/components/utilities/utest/utest.c
index 937f156b85..7103efb89c 100644
--- a/components/utilities/utest/utest.c
+++ b/components/utilities/utest/utest.c
@@ -54,8 +54,8 @@ static struct utest local_utest = {UTEST_PASSED, 0, 0};
#endif
#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_IS_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[index / 8] & (1UL << (index % 8)))
void utest_log_lv_set(rt_uint8_t lv)
{