diff --git a/cfi_blocklist.txt b/cfi_blocklist.txt index d9d50c13e..a1da49957 100644 --- a/cfi_blocklist.txt +++ b/cfi_blocklist.txt @@ -1,2 +1,4 @@ src:*/foundation/communication/ipc/interfaces/innerkits/ipc_core/include/iremote_broker.h -src:*/commonlibrary/c_utils/base/include/refbase.h \ No newline at end of file +src:*/commonlibrary/c_utils/base/include/refbase.h +src:*/third_party/googletest/googletest/include/gtest/internal/gtest-port.h +src:*/third_party/googletest/googlemock/include/gmock/gmock-cardinalities.h \ No newline at end of file diff --git a/test/unittest/executors/BUILD.gn b/test/unittest/executors/BUILD.gn index 779f91a9d..03c13c9d2 100644 --- a/test/unittest/executors/BUILD.gn +++ b/test/unittest/executors/BUILD.gn @@ -21,6 +21,7 @@ ohos_unittest("iam_executors_test") { cfi = true cfi_cross_dso = true debug = false + blocklist = "../../../cfi_blocklist.txt" } stack_protector_ret = true include_dirs = [ diff --git a/test/unittest/inner_api/BUILD.gn b/test/unittest/inner_api/BUILD.gn index 25f685857..1d1d10977 100644 --- a/test/unittest/inner_api/BUILD.gn +++ b/test/unittest/inner_api/BUILD.gn @@ -22,6 +22,7 @@ ohos_unittest("iam_inner_api_test") { cfi = true cfi_cross_dso = true debug = false + blocklist = "../../../cfi_blocklist.txt" } stack_protector_ret = true include_dirs = [ diff --git a/test/unittest/services/BUILD.gn b/test/unittest/services/BUILD.gn index 5354ba49f..bd66f7473 100644 --- a/test/unittest/services/BUILD.gn +++ b/test/unittest/services/BUILD.gn @@ -22,6 +22,7 @@ ohos_unittest("iam_services_test") { cfi = true cfi_cross_dso = true debug = false + blocklist = "../../../cfi_blocklist.txt" } stack_protector_ret = true include_dirs = [