Merge changes from topic "uses-libs-5" am: 8fab5bcce3
am: a4cdcd3796
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1353554 Change-Id: I182197011a993ebc47312131327faefe9d4b17c3
This commit is contained in:
committed by
Automerger Merge Worker
commit
21b5ffa966
@@ -2652,13 +2652,13 @@ func TestUsesLibraries(t *testing.T) {
|
||||
// Test that only present libraries are preopted
|
||||
cmd = app.Rule("dexpreopt").RuleParams.Command
|
||||
|
||||
if w := `dex_preopt_target_libraries="/system/framework/foo.jar /system/framework/bar.jar"`; !strings.Contains(cmd, w) {
|
||||
if w := `--target-classpath-for-sdk any /system/framework/foo.jar:/system/framework/bar.jar`; !strings.Contains(cmd, w) {
|
||||
t.Errorf("wanted %q in %q", w, cmd)
|
||||
}
|
||||
|
||||
cmd = prebuilt.Rule("dexpreopt").RuleParams.Command
|
||||
|
||||
if w := `dex_preopt_target_libraries="/system/framework/foo.jar /system/framework/bar.jar"`; !strings.Contains(cmd, w) {
|
||||
if w := `--target-classpath-for-sdk any /system/framework/foo.jar:/system/framework/bar.jar`; !strings.Contains(cmd, w) {
|
||||
t.Errorf("wanted %q in %q", w, cmd)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user