Integrated: 8251267: CDS tests should use CDSTestUtils.getOutputDir instead of System.getProperty("user.dir")

Calvin Cheung ccheung at openjdk.java.net
Tue Dec 8 20:03:37 UTC 2020


On Tue, 8 Dec 2020 17:17:09 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> Replacing
>     `String s = System.getProperty("user.dir");` 
> with
>     `String s = CDSTestUtils.getOutputDir(); `
> 
> Replacing
>     `File dir = new File(System.getProperty("user.dir"));`
> with
>     `File dir = CDSTestUtils.getOutputDirAsFile();`
> 
> Passed tier1, hs-tiers 2/3/4 tests.

This pull request has now been integrated.

Changeset: 291ba97f
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/291ba97f
Stats:     59 lines in 24 files changed: 24 ins; 0 del; 35 mod

8251267: CDS tests should use CDSTestUtils.getOutputDir instead of System.getProperty("user.dir")

Reviewed-by: minqi, iklam

-------------

PR: https://git.openjdk.java.net/jdk/pull/1700


More information about the hotspot-runtime-dev mailing list