bugfix:tdd cfi

Signed-off-by: liuxinbing <liuxinbing4@huawei.com>
This commit is contained in:
liuxinbing 2024-05-23 09:44:45 +08:00
parent 8458731c4d
commit 85f3139bfd
8 changed files with 23 additions and 0 deletions

16
cfi_blocklist.txt Normal file
View File

@ -0,0 +1,16 @@
# Copyright (C) 2024 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[cfi]
src:*third_party/googletest/googlemock/include/gmock/*
src:*third_party/googletest/googletest/include/gtest/*

View File

@ -33,6 +33,7 @@ ohos_unittest("LocationCommonTest") {
cfi = true cfi = true
cfi_cross_dso = true cfi_cross_dso = true
debug = false debug = false
blocklist = "./../../cfi_blocklist.txt"
} }
branch_protector_ret = "pac_ret" branch_protector_ret = "pac_ret"

View File

@ -31,6 +31,7 @@ if (location_feature_with_geocode) {
cfi = true cfi = true
cfi_cross_dso = true cfi_cross_dso = true
debug = false debug = false
blocklist = "./../../cfi_blocklist.txt"
} }
branch_protector_ret = "pac_ret" branch_protector_ret = "pac_ret"

View File

@ -40,6 +40,7 @@ if (location_feature_with_gnss) {
cfi = true cfi = true
cfi_cross_dso = true cfi_cross_dso = true
debug = false debug = false
blocklist = "./../../cfi_blocklist.txt"
} }
branch_protector_ret = "pac_ret" branch_protector_ret = "pac_ret"

View File

@ -21,6 +21,7 @@ ohos_unittest("LocatorServiceAbilityTest") {
cfi = true cfi = true
cfi_cross_dso = true cfi_cross_dso = true
debug = false debug = false
blocklist = "./../../cfi_blocklist.txt"
} }
branch_protector_ret = "pac_ret" branch_protector_ret = "pac_ret"
module_out_path = module_output_path module_out_path = module_output_path

View File

@ -38,6 +38,7 @@ ohos_unittest("LocationMockIpcTest") {
cfi = true cfi = true
cfi_cross_dso = true cfi_cross_dso = true
debug = false debug = false
blocklist = "./../../cfi_blocklist.txt"
} }
branch_protector_ret = "pac_ret" branch_protector_ret = "pac_ret"

View File

@ -38,6 +38,7 @@ if (location_feature_with_network) {
cfi = true cfi = true
cfi_cross_dso = true cfi_cross_dso = true
debug = false debug = false
blocklist = "./../../cfi_blocklist.txt"
} }
branch_protector_ret = "pac_ret" branch_protector_ret = "pac_ret"

View File

@ -38,6 +38,7 @@ if (location_feature_with_passive) {
cfi = true cfi = true
cfi_cross_dso = true cfi_cross_dso = true
debug = false debug = false
blocklist = "./../../cfi_blocklist.txt"
} }
branch_protector_ret = "pac_ret" branch_protector_ret = "pac_ret"