Skip to content

Commit

Permalink
Merge pull request #760 from kohlschutter/ck/TestFailureAddOpens
Browse files Browse the repository at this point in the history
test: Fix tests that spawn new processes
  • Loading branch information
lgrignon authored Oct 10, 2023
2 parents f71d3da + 6495c28 commit dff23e0
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ public void testCommandLine() throws Throwable {
process = ProcessUtil.runCommand("java", line -> {
System.out.println(line);
}, null, "-cp", TranspilerTestRunner.getTestClassPath(), //
"--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
JSweetCommandLineLauncher.class.getName(), //
"--tsout", outDir.getPath(), //
"--targetVersion", "ES6", //
Expand All @@ -118,6 +122,10 @@ public void testCommandLine() throws Throwable {
process = ProcessUtil.runCommand("java", line -> {
System.out.println(line);
}, null, "-cp", TranspilerTestRunner.getTestClassPath(), //
"--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
JSweetCommandLineLauncher.class.getName(), //
"--tsout", outDir.getPath(), //
"--jsout", outDir.getPath(), //
Expand All @@ -143,6 +151,10 @@ public void testCommandLine() throws Throwable {
process = ProcessUtil.runCommand("java", line -> {
System.out.println(line);
}, null, "-cp", TranspilerTestRunner.getTestClassPath(), //
"--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
JSweetCommandLineLauncher.class.getName(), //
"--tsout", outDir.getPath(), //
"--jsout", outDir.getPath(), //
Expand All @@ -161,6 +173,10 @@ public void testCommandLine() throws Throwable {
process = ProcessUtil.runCommand("java", line -> {
System.out.println(line);
}, null, "-cp", TranspilerTestRunner.getTestClassPath(), //
"--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
JSweetCommandLineLauncher.class.getName(), //
"--tsout", outDir.getPath(), //
"--jsout", outDir.getPath(), //
Expand All @@ -178,6 +194,10 @@ public void testCommandLine() throws Throwable {
process = ProcessUtil.runCommand("java", line -> {
System.out.println(line);
}, null, "-cp", TranspilerTestRunner.getTestClassPath(), //
"--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
JSweetCommandLineLauncher.class.getName(), //
"--tsout", outDir.getPath(), //
"--jsout", outDir.getPath(), //
Expand All @@ -204,6 +224,10 @@ public void testCommandLineSuccess() {
process = ProcessUtil.runCommand("java", line -> {
System.out.println(line);
}, null, "-cp", TranspilerTestRunner.getTestClassPath(), //
"--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
JSweetCommandLineLauncher.class.getName(), //
"--tsout", outDir.getPath(), //
"--jsout", outDir.getPath(), //
Expand All @@ -228,6 +252,10 @@ public void testErroneousCommandLineArgument() throws Throwable {
process = ProcessUtil.runCommand("java", line -> {
System.out.println(line);
}, null, "-cp", TranspilerTestRunner.getTestClassPath(), //
"--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
JSweetCommandLineLauncher.class.getName(), //
"--tsout", outDir.getPath(), //
"--jsout", outDir.getPath(), //
Expand Down

0 comments on commit dff23e0

Please sign in to comment.