提交 51b5a05b 编写于 作者: O openharmony_ci 提交者: Gitee

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

Merge pull request !269 from gao_harmony/kernel_lite_master_20210610_1
...@@ -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.
先完成此消息的编辑!
想要评论请 注册