提交 a5086db7 编写于 作者: L limeng151

修改用例

Signed-off-by: Nlimeng151 <limeng151@huawei.com>
Change-Id: I6724e18ba6234caa2b4863c2f075110cef62b276
上级 0776e344
......@@ -293,27 +293,6 @@ void *ThreadPthreadSpecificAll(void *arg)
return arg;
}
/**
* @tc.number SUB_KERNEL_PTHREAD_SPECIFIC_ALL_0100
* @tc.name Basic usage of test thread specific data
* @tc.desc [C- SOFTWARE -0200]
*/
HWTEST_F(PthreadTest, testPthreadSpecificAll, Function | MediumTest | Level3)
{
g_intPthreadSpecificAll = 0;
pthread_t tid1;
pthread_t tid2;
ASSERT_EQ(pthread_create(&tid1, nullptr, ThreadPthreadSpecificAll, nullptr), 0) << "> return errno";
Msleep(20);
ASSERT_EQ(pthread_create(&tid2, nullptr, ThreadPthreadSpecificAll, nullptr), 0) << "> return errno";
Msleep(100);
pthread_cancel(tid1);
pthread_join(tid1, nullptr);
pthread_cancel(tid2);
pthread_join(tid2, nullptr);
EXPECT_EQ(g_intPthreadSpecificAll, 5);
}
void DestructorPthreadSpecificAllDelete(void *param)
{
int *p = (int*)param;
......@@ -421,7 +400,7 @@ void TestPopHandler2(void *arg)
LOG("step = %lx", CheckStep(10));
}
void *ThreadTestop(void *arg)
static void *ThreadTestop(void *arg)
{
pthread_cleanup_push(TestPopHandler1, nullptr);
pthread_cleanup_push(TestPopHandler2, nullptr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册