diff options
| author | liuxianliang <[email protected]> | 2022-05-13 10:40:32 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2022-05-18 08:44:30 +0800 |
| commit | 75a55f2028b9b1d82b0e479c9325ac4184687922 (patch) | |
| tree | a685f7548dbf319c7f38c6c0c8a4e7c7f87ad58e /examples | |
| parent | 9f5a9b6bc884ff0640219677e2e18c84db2100c6 (diff) | |
[fix] enhance strength about cpp testcase.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/utest/testcases/cpp11/thread_tc.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |
