提交 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)
ret = LoadPermissions(SUBTEST_APP_ID, TEST_TASKID);
EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "load ret = " << ret << endl;
ret = LoadPermissions(PERMISSION_EMPTY, TEST_TASKID);
#ifndef __LINUX__
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);
EXPECT_EQ(ret, PERM_ERRORCODE_SUCCESS) << "load ret = " << ret << endl;
ret = LoadPermissions(PERMISSION_UNSUPPORTED, TEST_TASKID);
......@@ -480,4 +476,4 @@ HWTEST_F(ActsPMSLoadTest, testSecPMPMS_0880, Function | MediumTest | Level4)
EXPECT_EQ(ret, PERM_ERRORCODE_JSONPARSE_FAIL) << "load ret = " << ret << endl;
UnLoadPermissions(TEST_TASKID);
DeletePermissions(TEST_APP_ID);
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册