Withdrawn: 8352107: Allow jtreg test cases to query test VM properties

Ioi Lam iklam at openjdk.org
Thu Mar 20 16:53:17 UTC 2025


On Sun, 16 Mar 2025 02:54:36 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> This PR tries to cut down the use of `WhiteBox` in the HotSpot test cases. It modifies `VMProps` to save the set of VM properties into a file called "vm.properties" under Jtreg's work directory. The new API `jdk.test.lib.VMPropsGetter` loads the properties from this file to pass onto individual test cases.
> 
> See `getJtregWorkDir()` for the code that figures out the work directory. It assumes that `VMProps` and all test cases are always executed under
> 
> - `workDir/scratch/` ; or
> - `workDir/scratch/[0-9]+/` 
> 
> This is probably not the right thing to do. I would be better for Jtreg to pass the location of the work directory to the test cases, with a command-line options like `-Djtreg.work.dir=<dir>`.
> 
> To show the benefit of this PR, I modified a few test cases to remove their use of WhiteBox.

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jdk/pull/24071


More information about the core-libs-dev mailing list