From 9e93b1bb1232b5ca13d9a96ab308a0c8c80a457c Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 21 Aug 2020 15:57:53 -0700 Subject: [PATCH] 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 --- apex/apex_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/apex/apex_test.go b/apex/apex_test.go index 70464fc7a..e9843fc1a 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -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 {