From 75a55f2028b9b1d82b0e479c9325ac4184687922 Mon Sep 17 00:00:00 2001 From: liuxianliang Date: Fri, 13 May 2022 10:40:32 +0800 Subject: [PATCH] [fix] enhance strength about cpp testcase. --- examples/utest/testcases/cpp11/thread_tc.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/utest/testcases/cpp11/thread_tc.cpp b/examples/utest/testcases/cpp11/thread_tc.cpp index 751540937a..21dc9c8bc8 100644 --- a/examples/utest/testcases/cpp11/thread_tc.cpp +++ b/examples/utest/testcases/cpp11/thread_tc.cpp @@ -31,6 +31,14 @@ static void test_thread(void) uassert_false(1); } + std::thread t2(func); + t2.join(); + + if (count != 200) + { + uassert_false(1); + } + uassert_true(1); }