提交 cc8e5e30 编写于 作者: O openharmony_ci 提交者: Gitee

!653 linux pms085_testcase adapt

Merge pull request !653 from 胡吉翔/security_lite_20210918_02
...@@ -434,11 +434,7 @@ HWTEST_F(ActsPMSLoadTest, testSecPMPMS_0850, Function | MediumTest | Level4) ...@@ -434,11 +434,7 @@ HWTEST_F(ActsPMSLoadTest, testSecPMPMS_0850, Function | MediumTest | Level4)
ret = LoadPermissions(SUBTEST_APP_ID, TEST_TASKID); ret = LoadPermissions(SUBTEST_APP_ID, TEST_TASKID);
EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "load ret = " << ret << endl; EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "load ret = " << ret << endl;
ret = LoadPermissions(PERMISSION_EMPTY, TEST_TASKID); ret = LoadPermissions(PERMISSION_EMPTY, TEST_TASKID);
#ifndef __LINUX__
EXPECT_EQ(ret, PERM_ERRORCODE_STAT_FAIL) << "load ret = " << ret << endl; EXPECT_EQ(ret, PERM_ERRORCODE_STAT_FAIL) << "load ret = " << ret << endl;
#else
EXPECT_EQ(ret, PERM_ERRORCODE_READFD_FAIL) << "load ret = " << ret << endl;
#endif
ret = LoadPermissions(PERMISSION_TOOLONG, TEST_TASKID); ret = LoadPermissions(PERMISSION_TOOLONG, TEST_TASKID);
EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "load ret = " << ret << endl; EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "load ret = " << ret << endl;
ret = LoadPermissions(PERMISSION_UNSUPPORTED, TEST_TASKID); ret = LoadPermissions(PERMISSION_UNSUPPORTED, TEST_TASKID);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册