Switch coverage of core-oj from whitelist to blacklist.
This changes the coverage build of core-oj from whitelisting
java.sql.* for instrumentation to blacklisting the packages which are
found (by trial-and-error) to contain classes invoked during the
instrumentation code and so cause an infite loop.
The blacklist still covers about 3/4 of core-oj packages. Blacklisting
at a finer granularity will improve that.
Bug: 64836607
Test: `cts-tradefed run cts-dev -m CtsLibcoreTestCases --test-arg com.android.compatibility.testtype.LibcoreTest:coverage:true` on a build with EMMA_INSTRUMENT=true and EMMA_INSTRUMENT_FRAMEWORK=true
Change-Id: Iecb412bfd2171265e038ddebaeaf7256413beaf8
diff --git a/JavaLibrary.bp b/JavaLibrary.bp
index 1da8b6d..b744bf6 100644
--- a/JavaLibrary.bp
+++ b/JavaLibrary.bp
@@ -103,8 +103,14 @@
javacflags: ["--patch-module=java.base=."],
},
jacoco: {
- include_filter: [
- "java.sql.*",
+ exclude_filter: [
+ "java.io.*",
+ "java.lang.*",
+ "java.net.*",
+ "java.nio.*",
+ "java.security.*",
+ "java.util.*",
+ "sun.*",
],
},