diff options
author | 2019-05-13 09:23:20 -0700 | |
---|---|---|
committer | 2019-05-15 15:46:26 -0700 | |
commit | a24af3ba207d0b5e965aad8a65689bf9a29db393 (patch) | |
tree | 939456f90e51915eea8f041a8b5cca5ce99666f5 /java/dexpreopt_test.go | |
parent | bc975e8b897eaff7e5729fc362c31d35e838526a (diff) |
Turn off dex actions for sourceless modules.
Test: dexpreopt_test.go
Fixes: 129370564
Change-Id: Ic292f37c4f782b14fce625b85817b58c31d3f276
Diffstat (limited to 'java/dexpreopt_test.go')
-rw-r--r-- | java/dexpreopt_test.go | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/java/dexpreopt_test.go b/java/dexpreopt_test.go index 4af2f5c38..7d0109fda 100644 --- a/java/dexpreopt_test.go +++ b/java/dexpreopt_test.go @@ -52,14 +52,26 @@ func TestDexpreoptEnabled(t *testing.T) { }`, enabled: true, }, - { name: "app without sources", bp: ` android_app { name: "foo", }`, - // TODO(ccross): this should probably be false + enabled: false, + }, + { + name: "app with libraries", + bp: ` + android_app { + name: "foo", + static_libs: ["lib"], + } + + java_library { + name: "lib", + srcs: ["a.java"], + }`, enabled: true, }, { @@ -69,10 +81,8 @@ func TestDexpreoptEnabled(t *testing.T) { name: "foo", installable: true, }`, - // TODO(ccross): this should probably be false - enabled: true, + enabled: false, }, - { name: "static java library", bp: ` |