8294840: langtools OptionalDependencyTest.java use File.pathSeparator

Reviewed-by: alanb
This commit is contained in:
Matthias Baesken 2022-10-05 14:41:29 +00:00
parent ee6c39175b
commit f531dae4a0

View File

@ -30,6 +30,7 @@
* @summary Tests optional dependency handling
*/
import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Set;
@ -71,7 +72,7 @@ public class OptionalDependencyTest {
*/
@Test
public void optionalDependenceNotResolved() {
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar:m3.jar",
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar" + File.pathSeparator + "m3.jar",
"--inverse",
"--package", "p2", "m1.jar");
int rc = jdepsRunner.run(true);
@ -83,7 +84,7 @@ public class OptionalDependencyTest {
*/
@Test
public void optionalDependenceResolved() {
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar:m3.jar",
JdepsRunner jdepsRunner = new JdepsRunner("--module-path", "m2.jar" + File.pathSeparator + "m3.jar",
"--inverse", "--add-modules", "m3",
"--package", "p2", "m1.jar");
int rc = jdepsRunner.run(true);