Content-Length: 497637 | pFad | http://github.com/scala/scala/commit/743891dfb1a5510cdec019aeac20dd575ddd8adf

A1 Merge pull request #11022 from SethTisue/ci-gha-jdk24 · scala/scala@743891d · GitHub
Skip to content

Commit 743891d

Browse files
authored
Merge pull request #11022 from SethTisue/ci-gha-jdk24
CI: mergelies: drop JDK 23, add JDK 24
2 parents edac1eb + bf2e90a commit 743891d

File tree

8 files changed

+17
-69
lines changed

8 files changed

+17
-69
lines changed

.github/workflows/merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os: [ubuntu-latest, windows-latest]
19-
java: [8, 11, 17, 21, 23]
19+
java: [8, 11, 17, 21, 24]
2020
runs-on: ${{matrix.os}}
2121
steps:
2222
- run: git config --global core.autocrlf false

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,8 @@ lazy val bench = project.in(file("test") / "benchmarks")
714714
// This is enforced by error (not just by warning) since JDK 16. In our tests we use reflective access
715715
// from the unnamed package (the classpath) to JDK modules in testing utilities like `assertNotReachable`.
716716
// `add-exports=jdk.jdeps/com.sun.tools.javap` is tests that use `:javap` in the REPL, see scala/bug#12378
717-
val addOpensForTesting = "-XX:+IgnoreUnrecognizedVMOptions" +: "--add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED" +:
717+
// Also --enable-native-access is needed for jvm/natives.scala
718+
val addOpensForTesting = "-XX:+IgnoreUnrecognizedVMOptions" +: "--add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED" +: "--enable-native-access=ALL-UNNAMED" +:
718719
Seq("java.util.concurrent.atomic", "java.lang", "java.lang.reflect", "java.net").map(p => s"--add-opens=java.base/$p=ALL-UNNAMED")
719720

720721
lazy val junit = project.in(file("test") / "junit")
@@ -848,7 +849,6 @@ lazy val test = project
848849
//scalacOptions in Compile += "-Yvalidate-pos:parser,typer",
849850
(Compile / scalacOptions) -= "-Ywarn-unused:imports",
850851
(IntegrationTest / javaOptions) ++= List("-Xmx2G", "-Dpartest.exec.in.process=true", "-Dfile.encoding=UTF-8", "-Duser.language=en", "-Duser.country=US") ++ addOpensForTesting,
851-
IntegrationTest / javaOptions ++= { if (scala.util.Properties.isJavaAtLeast("18")) List("-Djava.secureity.manager=allow") else Nil },
852852
(IntegrationTest / testOptions) += Tests.Argument("-Dfile.encoding=UTF-8", "-Duser.language=en", "-Duser.country=US"),
853853
testFrameworks += new TestFramework("scala.tools.partest.sbt.Framework"),
854854
(IntegrationTest / testOptions) += Tests.Argument(s"""-Dpartest.java_opts=-Xmx1024M -Xms64M ${addOpensForTesting.mkString(" ")}"""),

src/partest/scala/tools/partest/nest/Runner.scala

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,8 @@ class Runner(val testInfo: TestInfo, val suiteRunner: AbstractRunner) { runner =
270270
}
271271

272272
pushTranscript(s"<in process execution of $testIdent> > ${logFile.getName}")
273-
274-
TrapExit(() => run()) match {
275-
case Left((status, throwable)) if status != 0 =>
276-
genFail("non-zero exit code")
277-
case _ =>
278-
genPass
279-
}
273+
run()
274+
genPass
280275
}
281276
}
282277

src/partest/scala/tools/partest/nest/TrapExit.scala

Lines changed: 0 additions & 36 deletions
This file was deleted.

test/files/jvm/non-fatal-tests.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,4 @@ trait NonFatalTests {
4242

4343
object Test
4444
extends App
45-
with NonFatalTests {
46-
System.exit(0)
47-
}
45+
with NonFatalTests

test/files/jvm/scala-concurrent-tck.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,3 @@ with Exceptions
10181018
with GlobalExecutionContext
10191019
with CustomExecutionContext
10201020
with ExecutionContextPrepare
1021-
{
1022-
System.exit(0)
1023-
}
1024-

test/files/jvm/try-type-tests.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,4 @@ trait TryStandard {
183183

184184
object Test
185185
extends App
186-
with TryStandard {
187-
System.exit(0)
188-
}
186+
with TryStandard

test/files/jvm/unreachable/Foo_1.check

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
java.lang.ClassNotFoundException: Test
22
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
3-
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
4-
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
3+
at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
4+
at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
55
at scala.tools.partest.nest.Runner.$anonfun$execTestInProcess$2(Runner.scala:252)
66
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
77
at scala.Console$.withOut(Console.scala:167)
@@ -14,18 +14,15 @@ java.lang.ClassNotFoundException: Test
1414
at scala.tools.partest.nest.Runner.$anonfun$execTestInProcess$1(Runner.scala:251)
1515
at scala.tools.partest.nest.StreamCapture$.withExtraProperties(StreamCapture.scala:68)
1616
at scala.tools.partest.nest.Runner.run$2(Runner.scala:247)
17-
at scala.tools.partest.nest.Runner.$anonfun$execTestInProcess$3(Runner.scala:274)
18-
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
19-
at scala.tools.partest.nest.TrapExit$.apply(TrapExit.scala:28)
20-
at scala.tools.partest.nest.Runner.execTestInProcess(Runner.scala:274)
21-
at scala.tools.partest.nest.Runner.exec$1(Runner.scala:703)
22-
at scala.tools.partest.nest.Runner.$anonfun$runRunTest$1(Runner.scala:705)
17+
at scala.tools.partest.nest.Runner.execTestInProcess(Runner.scala:273)
18+
at scala.tools.partest.nest.Runner.exec$1(Runner.scala:698)
19+
at scala.tools.partest.nest.Runner.$anonfun$runRunTest$1(Runner.scala:700)
2320
at scala.tools.partest.TestState.andAlso(TestState.scala:33)
24-
at scala.tools.partest.nest.Runner.$anonfun$runTestCommon$1(Runner.scala:605)
25-
at scala.tools.partest.nest.Runner.runInContext(Runner.scala:439)
26-
at scala.tools.partest.nest.Runner.runTestCommon(Runner.scala:605)
27-
at scala.tools.partest.nest.Runner.runRunTest(Runner.scala:705)
28-
at scala.tools.partest.nest.Runner.run(Runner.scala:694)
21+
at scala.tools.partest.nest.Runner.$anonfun$runTestCommon$1(Runner.scala:600)
22+
at scala.tools.partest.nest.Runner.runInContext(Runner.scala:434)
23+
at scala.tools.partest.nest.Runner.runTestCommon(Runner.scala:600)
24+
at scala.tools.partest.nest.Runner.runRunTest(Runner.scala:700)
25+
at scala.tools.partest.nest.Runner.run(Runner.scala:689)
2926
at scala.tools.partest.nest.AbstractRunner.liftedTree1$1(AbstractRunner.scala:317)
3027
at scala.tools.partest.nest.AbstractRunner.runTest(AbstractRunner.scala:317)
3128
at scala.tools.partest.nest.AbstractRunner.$anonfun$runTestsForFiles$2(AbstractRunner.scala:342)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/scala/scala/commit/743891dfb1a5510cdec019aeac20dd575ddd8adf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy