We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f85053f commit fc28856Copy full SHA for fc28856
test/lib/jdk/test/lib/cds/CDSTestUtils.java
@@ -594,8 +594,12 @@ public static File getSourceFile(String name) {
594
595
// ============================= Logging
596
public static OutputAnalyzer executeAndLog(ProcessBuilder pb, String logName) throws Exception {
597
+ return executeAndLog(pb.start(), logName);
598
+ }
599
+
600
+ public static OutputAnalyzer executeAndLog(Process process, String logName) throws Exception {
601
long started = System.currentTimeMillis();
- OutputAnalyzer output = new OutputAnalyzer(pb.start());
602
+ OutputAnalyzer output = new OutputAnalyzer(process);
603
String logFileNameStem =
604
String.format("%04d", getNextLogCounter()) + "-" + logName;
605
0 commit comments