8248306: gc/stress/gclocker/TestExcessGCLockerCollections.java does not compile

Update the test to use the method suggested in JDK-8244010.

Reviewed-by: kbarrett
This commit is contained in:
Thomas Schatzl 2020-07-03 16:32:33 +02:00
parent 5cf33168d7
commit 6c89a9653e

View File

@ -174,9 +174,7 @@ public class TestExcessGCLockerCollections {
finalArgs.addAll(Arrays.asList(args));
// GC and other options obtained from test framework.
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
true, finalArgs);
OutputAnalyzer output = new OutputAnalyzer(pb.start());
OutputAnalyzer output = ProcessTools.executeTestJvm(finalArgs);
output.shouldHaveExitValue(0);
//System.out.println("------------- begin stdout ----------------");
//System.out.println(output.getStdout());