Remove TestApexWithJniLibs_Errors

AddFarVariationDependencies was broken, which allowed dependencies
on non-libraries to be added even though a link variation was
requested.  When AddFarVariationDependencies is fixed, attempting
to add a non-library to jni_libs results in the usual missing
variant error.

Test: none
Change-Id: I6aa281491b8af5f141a2d132e248c75f95d68ab5
This commit is contained in:
Colin Cross 2020-08-21 15:57:53 -07:00
parent cc83efbb18
commit 9e93b1bb12
1 changed files with 0 additions and 23 deletions

View File

@ -5399,29 +5399,6 @@ func TestApexMutatorsDontRunIfDisabled(t *testing.T) {
}
}
func TestApexWithJniLibs_Errors(t *testing.T) {
testApexError(t, `jni_libs: "xxx" is not a cc_library`, `
apex {
name: "myapex",
key: "myapex.key",
jni_libs: ["xxx"],
}
apex_key {
name: "myapex.key",
public_key: "testkey.avbpubkey",
private_key: "testkey.pem",
}
prebuilt_etc {
name: "xxx",
src: "xxx",
}
`, withFiles(map[string][]byte{
"xxx": nil,
}))
}
func TestAppBundle(t *testing.T) {
ctx, _ := testApex(t, `
apex {