RFR: 8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges [v2]

Roger Riggs rriggs at openjdk.org
Tue Sep 5 13:54:49 UTC 2023


On Fri, 1 Sep 2023 08:32:20 GMT, Christoph Langer <clanger at openjdk.org> wrote:

>> On Windows, the test java/lang/ProcessHandle/InfoTest.java can fail when run as user that is member of the Administrators group. In that case new files are not owned by the user but instead by BUILTIN\ADMINISTRATORS. This breaks the assumptions of the test's whoami check. My suggestion is to cater for this case and don't fail the test but write a warning message to stdout that a whoami check is not correctly possible.
>
> Christoph Langer has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
> 
>  - Use System.getProperty(user.name) for the Windows Adminstrators case
>  - Merge branch 'master' into JDK-8314094
>  - JDK-8314094

A bit late due to a US holiday. Looks good.

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

PR Review: https://git.openjdk.org/jdk/pull/15222#pullrequestreview-1611114630


More information about the core-libs-dev mailing list