补充用例

Signed-off-by: wenlong_12 <wenlong12@huawei.com>
This commit is contained in:
wenlong_12 2024-07-29 06:35:37 +00:00 committed by Gitee
parent b1b59cb25f
commit 103ffb6f55
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -962,7 +962,7 @@ HWTEST_F(SubCommandStatTest, TestOnSubCommand_d5, TestSize.Level1)
int tid1 = 0;
std::thread t1(SubCommandStatTest::TestCodeThread, std::ref(tid1));
while (tid1 == 0) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
std::this_thread::sleep_for(std::chrono::milliseconds(10)); // 10: sleep 10ms
}
std::string cmdstr = "stat -p ";
@ -1000,7 +1000,7 @@ HWTEST_F(SubCommandStatTest, TestOnSubCommand_d6, TestSize.Level1)
int tid1 = 0;
std::thread t1(SubCommandStatTest::TestCodeThread, std::ref(tid1));
while (tid1 == 0) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
std::this_thread::sleep_for(std::chrono::milliseconds(10)); // 10: sleep 10ms
}
std::string cmdstr = "stat -p ";