diff --git a/cfi_blocklist.txt b/cfi_blocklist.txt index 89d302fdc73f6ae208a1956ed722e5016e548e3e..020893f24eb12fbcb8b67045b2757ee4efbea7c4 100644 --- a/cfi_blocklist.txt +++ b/cfi_blocklist.txt @@ -13,4 +13,5 @@ [cfi] src:*third_party/googletest/googlemock/include/gmock/* -src:*third_party/googletest/googletest/include/gtest/* \ No newline at end of file +src:*third_party/googletest/googletest/include/gtest/* +src:*kvstore_data_service_test.cpp \ No newline at end of file diff --git a/services/distributeddataservice/app/test/BUILD.gn b/services/distributeddataservice/app/test/BUILD.gn index 3acedc0061474741e638900047657ff6866ea4a1..39a29c7eb69e1edd0212ce244918cbf33f34ace1 100644 --- a/services/distributeddataservice/app/test/BUILD.gn +++ b/services/distributeddataservice/app/test/BUILD.gn @@ -94,6 +94,7 @@ ohos_unittest("KvStoreDataServiceTest") { cfi = true cfi_cross_dso = true debug = false + blocklist = "${datamgr_service_path}/cfi_blocklist.txt" } configs = [ ":module_private_config" ]