提交 409aff76 编写于 作者: O openharmony_ci 提交者: Gitee

!271 capability2200testcasefix2

Merge pull request !271 from 胡吉翔/security_20210611
......@@ -12,6 +12,7 @@
# limitations under the License.
import("//test/xts/tools/lite/build/suite_lite.gni")
import("//build/lite/config/subsystem/aafwk/config.gni")
hcpptest_suite("ActsJFFS2CapabilityTest") {
suite_name = "acts"
......@@ -39,9 +40,17 @@ hcpptest_suite("ActsJFFS2CapabilityTest") {
"-lpthread",
]
defines = [
"LITE_FS_JFFS2",
"TOP_DIR=\"/storage\"",
"TOP_DIR_MOUNT_INFO=\"/storage jffs\"",
]
if(enable_ohos_appexecfwk_feature_ability == true) {
defines = ["BOARD_HI3516_",
"LITE_FS_JFFS2",
"TOP_DIR=\"/storage\"",
"TOP_DIR_MOUNT_INFO=\"/storage jffs\"",
]
} else {
defines = [
"LITE_FS_JFFS2",
"TOP_DIR=\"/storage\"",
"TOP_DIR_MOUNT_INFO=\"/storage jffs\"",
]
}
}
......@@ -1490,7 +1490,8 @@ HWTEST_F(CapabilityTestSuite, CapabilityTest2100, Reliability | MediumTest | Lev
}
#endif
#if defined(LITE_FS_JFFS2)
#ifndef _BOARD_HI3516_
#if defined(LITE_FS_JFFS2) || defined(LITE_FS_VFAT)
/*
* @tc.number : SUB_SEC_AppSEC_PermissionMgmt_Capability_2200
* @tc.name : Check whether the default configuration of the system process capabilities
......@@ -1529,8 +1530,9 @@ HWTEST_F(CapabilityTestSuite, CapabilityTest2200, Security | MediumTest | Level1
EXPECT_EQ(ret, 0) << "ErrInfo: Pid = 9, process wms_server or ai_server has wrong capability";
}
#endif
#endif
#if defined(LITE_FS_VFAT)
#if defined(LITE_FS_VFAT) && defined(_BOARD_HI3516_)
/*
* @tc.number : SUB_SEC_AppSEC_PermissionMgmt_Capability_2200
* @tc.name : Check whether the default configuration of the system process capabilities
......
......@@ -12,6 +12,7 @@
# limitations under the License.
import("//test/xts/tools/lite/build/suite_lite.gni")
import("//build/lite/config/subsystem/aafwk/config.gni")
hcpptest_suite("ActsVFATCapabilityTest") {
suite_name = "acts"
......@@ -39,9 +40,18 @@ hcpptest_suite("ActsVFATCapabilityTest") {
"-lpthread",
]
defines = [
"LITE_FS_VFAT",
"TOP_DIR=\"/sdcard\"",
"TOP_DIR_MOUNT_INFO=\"/sdcard vfat\"",
]
if(enable_ohos_appexecfwk_feature_ability == true) {
defines = ["BOARD_HI3516_",
"LITE_FS_JFFS2",
"TOP_DIR=\"/sdcard\"",
"TOP_DIR_MOUNT_INFO=\"/sdcard vfat\"",
]
} else {
defines = [
"LITE_FS_VFAT",
"TOP_DIR=\"/sdcard\"",
"TOP_DIR_MOUNT_INFO=\"/sdcard vfat\"",
]
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册