diff options
author | 2020-11-03 04:56:13 +0000 | |
---|---|---|
committer | 2020-11-03 04:56:13 +0000 | |
commit | 366c7d3a74d13b86122309a4710a30eda026e5f1 (patch) | |
tree | fd05db00ff6db1a5fa3dae5f4c9738e21c315f6a /java/java_test.go | |
parent | d3e294d8ac5ad26f96c1bc7b7326834cb8bd5aae (diff) | |
parent | 5136a6e5aa5b8e9cb2705e81ab587ae8cba6ab5c (diff) |
Merge "Add ctx.ModuleDir and top level module dirs of input sources to JDK9 --patch-module lookup."
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/java/java_test.go b/java/java_test.go index cdb437538..6c0a90856 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -2046,7 +2046,14 @@ func TestPatchModule(t *testing.T) { java_library { name: "baz", - srcs: ["c.java"], + srcs: [ + "c.java", + // Tests for b/150878007 + "dir/d.java", + "dir2/e.java", + "dir2/f.java", + "nested/dir/g.java" + ], patch_module: "java.base", } ` @@ -2055,7 +2062,8 @@ func TestPatchModule(t *testing.T) { checkPatchModuleFlag(t, ctx, "foo", "") expected := "java.base=.:" + buildDir checkPatchModuleFlag(t, ctx, "bar", expected) - expected = "java.base=" + strings.Join([]string{".", buildDir, moduleToPath("ext"), moduleToPath("framework")}, ":") + expected = "java.base=" + strings.Join([]string{ + ".", buildDir, "dir", "dir2", "nested", moduleToPath("ext"), moduleToPath("framework")}, ":") checkPatchModuleFlag(t, ctx, "baz", expected) }) } |