Integrated: 8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges

Christoph Langer clanger at openjdk.org
Tue Sep 5 08:34:48 UTC 2023


On Thu, 10 Aug 2023 09:54:43 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.

This pull request has now been integrated.

Changeset: 69c9ec92
Author:    Christoph Langer <clanger at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/69c9ec92d04a399946b2157690a1dc3fec517329
Stats:     46 lines in 1 file changed: 31 ins; 10 del; 5 mod

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

Reviewed-by: mbaesken, azeller

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

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


More information about the core-libs-dev mailing list