Skip to content

Commit 5fd24f1

Browse files
committed
[bugfix]components:libc:cplusplus: Repair the comment code.
utest:tc_atomic.cpp Modify the comments of the functions utest_tc_init, utest_tc_cleanup, testcase and UTEST_TC_EXPORT in tc_atomic.cpp. On the premise of conforming to RT-Thread coding standards, maintain consistency with the comment style of the tc_thread.cpp file. signed-off-by: Liu Chengtao<[email protected]>
1 parent 504ee76 commit 5fd24f1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

components/libc/cplusplus/utest/tc_atomic.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static void test_atomic_basic_int64(void)
158158

159159
val.fetch_and(14);
160160
uassert_int_equal(val.load(), 10);
161-
161+
162162
val.fetch_or(11); /* 1010 */
163163
uassert_int_equal(val.load(), 11);
164164

@@ -239,13 +239,19 @@ static void test_compare_exchange_weak(void)
239239
}
240240
uassert_int_equal(val.load(), 2);
241241
}
242-
/* Test case initialization function. */
242+
/**
243+
* @brief Test case initialization function.
244+
* @return RT_EOK on success.
245+
*/
243246
static rt_err_t utest_tc_init(void)
244247
{
245248
return RT_EOK;
246249
}
247250

248-
/* Test case cleanup function.*/
251+
/**
252+
* @brief Test case cleanup function.
253+
* @return RT_EOK on success.
254+
*/
249255
static rt_err_t utest_tc_cleanup(void)
250256
{
251257
return RT_EOK;

0 commit comments

Comments
 (0)