--- old/test/lib/jdk/test/lib/cds/CDSTestUtils.java 2019-03-24 20:44:10.290235272 -0700 +++ new/test/lib/jdk/test/lib/cds/CDSTestUtils.java 2019-03-24 20:44:10.138229895 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -564,8 +564,12 @@ // ============================= 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 outputFileNamePrefix = getTestName() + "-" + String.format("%04d", getNextLogCounter()) + "-" + logName;