Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/lib/jdk/test/lib/cds/CDSTestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,12 @@ public static File getSourceFile(String name) {

// ============================= Logging
public static OutputAnalyzer executeAndLog(ProcessBuilder pb, String logName) throws Exception {
return executeAndLog(pb.start(), logName);
}

public static OutputAnalyzer executeAndLog(Process process, String logName) throws Exception {
long started = System.currentTimeMillis();
OutputAnalyzer output = new OutputAnalyzer(pb.start());
OutputAnalyzer output = new OutputAnalyzer(process);
String logFileNameStem =
String.format("%04d", getNextLogCounter()) + "-" + logName;

Expand Down