提交 84815012 编写于 作者: G gao_harmony

【内核子系统集成测试】修改不稳定用例:shared_memory 模块ShmTest.cpp用例ShmTest.testShmatSHM_REMAP 未按照预想逻辑运行问题。

Signed-off-by: Ngao_harmony <gaofeng44@huawei.com>
Change-Id: I21db9d82c0d1967e9d59d48114e7bc5e3c9907e8
上级 ea90884b
......@@ -206,7 +206,7 @@ HWTEST_F(ShmTest, testShmatSHM_REMAP, Function | MediumTest | Level1)
ASSERT_NE(shared, (void*)-1) << "> parent: shmat 2 : errno = " << errno;
strncpy(shared, SHM_TEST_STR, SHM_TEST_STR_LEN);
ASSERT_NE(shmdt(shared), -1) << "> parent: shmdt 2 : errno = " << errno;
Msleep(20);
Msleep(50);
ASSERT_NE(shmctl(shmid, IPC_RMID, nullptr), -1) << "> parent: shmctl : errno = " << errno;
Msleep(50);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册