diff options
author | 2020-05-08 08:11:24 +0000 | |
---|---|---|
committer | 2020-05-08 08:11:24 +0000 | |
commit | 18bbde16156da14d66eb93aa074aede17834ea45 (patch) | |
tree | 4bb2c65018821d4df9d0c651581ec9520be7811f /apex/apex_test.go | |
parent | 06938a0a16a297041b4c914d0e2dda1413e556ea (diff) | |
parent | 5b75774004f0dc26a6dfe5d62976e1d2af4bcff3 (diff) |
Merge "Revert "Prevent statically linking to a lib providing stable C APIs""
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 81df02a05..dc6986244 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() |