From 88920fd8143d0d1f1d31759549039bf30adfdc66 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sat, 4 Jan 2025 16:37:27 -0500 Subject: [PATCH] =?UTF-8?q?[utest]=20=E4=BF=AE=E5=A4=8DUTEST=5FUNIT=5FRUN?= =?UTF-8?q?=E5=B5=8C=E5=A5=97=E5=AE=8F=E6=97=B6=E5=B0=86=E5=AE=8F=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E8=BE=93=E5=87=BA=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.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/utilities/utest/utest.h b/components/utilities/utest/utest.h index db4eebdfcb7..21329f64b0b 100644 --- a/components/utilities/utest/utest.h +++ b/components/utilities/utest/utest.h @@ -172,11 +172,13 @@ utest_t utest_handle_get(void); * @return None * */ -#define UTEST_UNIT_RUN(test_unit_func) \ +#define _UTEST_UNIT_RUN(test_unit_func) \ do { \ utest_unit_run(test_unit_func, #test_unit_func); \ } while (0) +#define UTEST_UNIT_RUN(test_unit_func) _UTEST_UNIT_RUN(test_unit_func) + #ifdef __cplusplus } #endif