diff options
author | 2020-05-08 07:55:47 +0000 | |
---|---|---|
committer | 2020-05-08 07:55:47 +0000 | |
commit | 5b75774004f0dc26a6dfe5d62976e1d2af4bcff3 (patch) | |
tree | 5b01c1b47858bccfe76d0fb2d0f43637b97069e4 /apex/apex_test.go | |
parent | 45b90e79c9b0807221f9d4584bd2524cac16369b (diff) |
Revert "Prevent statically linking to a lib providing stable C APIs"
This reverts commit 45b90e79c9b0807221f9d4584bd2524cac16369b.
Reason for revert: breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=run_bluetooth_host_native_tests&lkgb=6474123&lkbb=6474183&fkbb=6474137
Bug: 156046846
Change-Id: I0df395eaa4cd856ab466925031b21aa4adc3af08
Test: m on full-eng
Diffstat (limited to 'apex/apex_test.go')
-rw-r--r-- | apex/apex_test.go | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/apex/apex_test.go b/apex/apex_test.go index e89ebe07c..ce39b39e4 100644 --- a/apex/apex_test.go +++ b/apex/apex_test.go @@ -4774,42 +4774,6 @@ func TestTestFor(t *testing.T) { ensureNotContains(t, ldFlags, "mylib/android_arm64_armv8-a_shared_1/mylib.so") } -func TestNoStaticLinkingToStubsLib(t *testing.T) { - testApexError(t, `.*required by "mylib" is a native library providing stub.*`, ` - apex { - name: "myapex", - key: "myapex.key", - native_shared_libs: ["mylib"], - } - - apex_key { - name: "myapex.key", - public_key: "testkey.avbpubkey", - private_key: "testkey.pem", - } - - cc_library { - name: "mylib", - srcs: ["mylib.cpp"], - static_libs: ["otherlib"], - system_shared_libs: [], - stl: "none", - apex_available: [ "myapex" ], - } - - cc_library { - name: "otherlib", - srcs: ["mylib.cpp"], - system_shared_libs: [], - stl: "none", - stubs: { - versions: ["1", "2", "3"], - }, - apex_available: [ "myapex" ], - } - `) -} - func TestMain(m *testing.M) { run := func() int { setUp() |