mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 12:25:21 +00:00
8223054: [TESTBUG] Put graalJarsCP before existing classpath in GraalUnitTestLauncher
Reviewed-by: iignatyev, dlong
This commit is contained in:
parent
e0dcd3200a
commit
58a1f6ac13
@ -254,7 +254,11 @@ public class GraalUnitTestLauncher {
|
||||
.collect(Collectors.joining(File.pathSeparator));
|
||||
|
||||
javaFlags.add("-cp");
|
||||
javaFlags.add(String.join(File.pathSeparator, System.getProperty("java.class.path"), graalJarsCP));
|
||||
// Existing classpath returned by System.getProperty("java.class.path") may contain another
|
||||
// version of junit with which the jtreg tool is built. It may be incompatible with required
|
||||
// junit version. So we put graalJarsCP before existing classpath when generating a new one
|
||||
// to avoid incompatibility issues.
|
||||
javaFlags.add(String.join(File.pathSeparator, graalJarsCP, System.getProperty("java.class.path")));
|
||||
|
||||
//
|
||||
javaFlags.add("com.oracle.mxtool.junit.MxJUnitWrapper");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user