From 9e558ab130808b4b1cd12a379e9b8eb5be84bfe3 Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Tue, 24 Aug 2021 17:05:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90utest=E3=80=91fix=20TC=5FFAIL=5FLIST?= =?UTF-8?q?=5FMARK=5FFAILED=20=E4=B8=8B=E6=A0=87=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/utilities/utest/utest.c | 4 ++-- 1 file 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) {