提交 41421f59 编写于 作者: G gao_harmony

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

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