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

2023-09-04 Thread Arno Zeller
On Fri, 1 Sep 2023 08:32:20 GMT, Christoph Langer 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

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

2023-08-31 Thread Arno Zeller
On Wed, 30 Aug 2023 15:58:37 GMT, Roger Riggs wrote: >> Yes, I think using System.getProperty("user.name") is brittle as well. If >> we'd use `com.sun.security.auth.module.NTSystem`, we would introduce the >> dependency to another module - `jdk.security.auth`. Not sure, whether this >> is a

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

2023-08-27 Thread Arno Zeller
On Fri, 25 Aug 2023 07:47:19 GMT, Arno Zeller wrote: >> test/jdk/java/lang/ProcessHandle/InfoTest.java line 304: >> >>> 302: if (Platform.isWindows() && >>> "BUILTIN\\Administrators".equals(whoami)) { >>> 303:

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

2023-08-25 Thread Arno Zeller
On Wed, 16 Aug 2023 18:33:01 GMT, Roger Riggs 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 >>