mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 23:20:43 +00:00
delete return in hdc_register_unittest
Signed-off-by: zhaolihui <zhaolihui2@huawei.com>
This commit is contained in:
parent
3320fd5aaa
commit
3d1853e63f
@ -138,10 +138,9 @@ HWTEST_F(RegisterTest, CastToRegisterTest005, TestSize.Level1)
|
||||
pthread_t tid;
|
||||
g_connectManagement = std::make_unique<ConnectManagement>();
|
||||
g_connectManagement->SetPkgName("test_pkt_name");
|
||||
if (pthread_create(&tid, nullptr, &HdcConnectRunTest, static_cast<void*>(g_connectManagement.get())) != 0) {
|
||||
HILOG_FATAL(LOG_CORE, "pthread_create fail!");
|
||||
return;
|
||||
}
|
||||
ASSERT_EQ(
|
||||
pthread_create(&tid, nullptr, &HdcConnectRunTest, static_cast<void*>(g_connectManagement.get())),
|
||||
0) << "pthread_create fail!";
|
||||
sleep(3);
|
||||
EXPECT_TRUE(g_threadRunning);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user