OSDN Git Service

Disable CFI verification for unit tests that are using gtest+gmock
authorPavlin Radoslavov <pavlin@google.com>
Tue, 9 Jan 2018 13:36:20 +0000 (05:36 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 9 Jan 2018 13:36:20 +0000 (05:36 -0800)
Apparently, the CFI verification crashes unit tests that
are using gtest+gmock. Interestingly, those tests succeed for 32-bit
binaries, and fail for 64-bit binaries.

Bug: 71739588
Test: Running the 64-bit version of the unit tests in test/run_unit_tests.sh
Change-Id: Id1f6b3667b3f9eabb0719e65aea18c6950de63a8

osi/Android.bp
service/Android.bp
stack/Android.bp

index 8e5dbde..9b738f0 100644 (file)
@@ -151,4 +151,7 @@ cc_test {
             enabled: false,
         }
     },
+    sanitize: {
+        cfi: false,
+    },
 }
index 199a51b..37966af 100644 (file)
@@ -144,6 +144,9 @@ cc_test {
             ],
         },
     },
+    sanitize: {
+        cfi: false,
+    },
 }
 
 // Native system service CLI for target
index bdd1cfd..1bedd40 100644 (file)
@@ -287,6 +287,9 @@ cc_test {
         "liblog",
         "libgmock",
     ],
+    sanitize: {
+        cfi: false,
+    },
 }
 
 // Bluetooth stack advertise data parsing unit tests for target
@@ -337,4 +340,7 @@ cc_test {
         "libosi",
         "libbt-protos",
     ],
+    sanitize: {
+        cfi: false,
+    },
 }