equal
deleted
inserted
replaced
57 */ |
57 */ |
58 @BeforeTest |
58 @BeforeTest |
59 public void compileAll() throws Exception { |
59 public void compileAll() throws Exception { |
60 for (String mn : modules) { |
60 for (String mn : modules) { |
61 Path msrc = SRC_DIR.resolve(mn); |
61 Path msrc = SRC_DIR.resolve(mn); |
62 assertTrue(CompilerUtils.compile(msrc, MODS_DIR, "-modulesourcepath", SRC_DIR.toString())); |
62 assertTrue(CompilerUtils.compile(msrc, MODS_DIR, "--module-source-path", SRC_DIR.toString())); |
63 } |
63 } |
64 } |
64 } |
65 |
65 |
66 /** |
66 /** |
67 * Run the modular test |
67 * Run the modular test |
68 */ |
68 */ |
69 @Test |
69 @Test |
70 public void runTest() throws Exception { |
70 public void runTest() throws Exception { |
71 int exitValue = executeTestJava("-mp", MODS_DIR.toString(), |
71 int exitValue = executeTestJava("--module-path", MODS_DIR.toString(), |
72 "-m", "test/jdk.test.Main") |
72 "-m", "test/jdk.test.Main") |
73 .outputTo(System.out) |
73 .outputTo(System.out) |
74 .errorTo(System.out) |
74 .errorTo(System.out) |
75 .getExitValue(); |
75 .getExitValue(); |
76 |
76 |