diff options
| author | 2019-09-20 13:50:52 +0100 | |
|---|---|---|
| committer | 2019-09-20 14:52:56 +0100 | |
| commit | 68289b0efdfbef579085b668754dbc93fc84c05e (patch) | |
| tree | 386c3172e6056794a998c3949eadd06778a50682 /java/testing.go | |
| parent | 9f6cbaca2163d0ce5cd680ac68cdb45807e66614 (diff) | |
Add custom SystemModules to bootclasspath to reduce duplication
Adds a library dependency to each of the dummy system modules created
by testing.go so that any changes in the behavior were detected by
the existing tests which were then fixed.
Bug: 141359858
Test: m checkbuild
Change-Id: Id4442f4aa3931ac93049f3367b96a5b49cc075e1
Diffstat (limited to 'java/testing.go')
| -rw-r--r-- | java/testing.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/testing.go b/java/testing.go index a37c0a9dc..5315b857e 100644 --- a/java/testing.go +++ b/java/testing.go @@ -114,7 +114,13 @@ func GatherRequiredDepsForTest() string { for _, extra := range systemModules { bp += fmt.Sprintf(` java_system_modules { - name: "%s", + name: "%[1]s", + libs: ["%[1]s-lib"], + } + java_library { + name: "%[1]s-lib", + sdk_version: "none", + system_modules: "none", } `, extra) } |