Propagate transitive missing optional_uses_libs.
Bug: 331528424 Test: m --no-skip-soong-tests Ignore-AOSP-First: Depends on internal changes. Will cherry-pick once merged. Merged-In: Ied2821f11b6a5056ecf577e1e25765bc6dd212c0 Change-Id: Ied2821f11b6a5056ecf577e1e25765bc6dd212c0
This commit is contained in:
committed by
Android Build Cherrypicker Worker
parent
f98da19a07
commit
369370818f
@@ -3244,7 +3244,10 @@ func TestUsesLibraries(t *testing.T) {
|
||||
name: "static-y",
|
||||
srcs: ["a.java"],
|
||||
uses_libs: ["runtime-required-y"],
|
||||
optional_uses_libs: ["runtime-optional-y"],
|
||||
optional_uses_libs: [
|
||||
"runtime-optional-y",
|
||||
"missing-lib-a",
|
||||
],
|
||||
sdk_version: "current",
|
||||
}
|
||||
|
||||
@@ -3341,7 +3344,8 @@ func TestUsesLibraries(t *testing.T) {
|
||||
`--optional-uses-library bar ` +
|
||||
`--optional-uses-library runtime-optional-x ` +
|
||||
`--optional-uses-library runtime-optional-y ` +
|
||||
`--missing-optional-uses-library missing-lib-b `
|
||||
`--missing-optional-uses-library missing-lib-b ` +
|
||||
`--missing-optional-uses-library missing-lib-a`
|
||||
android.AssertStringDoesContain(t, "verify cmd args", verifyCmd, verifyArgs)
|
||||
|
||||
// Test that all libraries are verified for an APK (library order matters).
|
||||
|
Reference in New Issue
Block a user