Merge "Make native_coverage clause work with ClangCoverage"

This commit is contained in:
Colin Cross
2020-06-23 03:06:53 +00:00
committed by Gerrit Code Review
8 changed files with 26 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ func (cov *coverage) deps(ctx DepsContext, deps Deps) Deps {
func (cov *coverage) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags, PathDeps) {
if !ctx.DeviceConfig().NativeCoverageEnabled() && !ctx.DeviceConfig().ClangCoverageEnabled() {
if !ctx.DeviceConfig().NativeCoverageEnabled() {
return flags, deps
}

View File

@@ -88,6 +88,7 @@ func testRustContext(t *testing.T, bp string, coverage bool) *android.TestContex
config := testConfig(bp)
if coverage {
config.TestProductVariables.GcovCoverage = proptools.BoolPtr(true)
config.TestProductVariables.Native_coverage = proptools.BoolPtr(true)
config.TestProductVariables.NativeCoveragePaths = []string{"*"}
}