Integrated: 8367027: java/lang/ProcessBuilder/Basic.java fails on Windows AArch64

Saint Wesonga duke at openjdk.org
Tue Sep 9 13:17:02 UTC 2025


On Sat, 6 Sep 2025 20:44:55 GMT, Saint Wesonga <duke at openjdk.org> wrote:

> This test fails with errors like >'=C:=,=ExitValue=3,PROCESSOR_ARCHITECTURE=ARM64,SystemRoot=C:\Windows,'< not equal to '=C:=,=ExitValue=3,SystemRoot=C:\Windows,'
> 
> The test does not expect the PROCESSOR_ARCHITECTURE variable to be returned from the ProcessBuilder (called at https://github.com/openjdk/jdk/blob/431f46724658b703e995e518cb7a2149c50d6a9d/test/jdk/java/lang/ProcessBuilder/Basic.java#L127 for example). The fix is to treat it as an expected variable and strip it out from the results, similar to how macOS and AIX strip out their expected variables.
> 
> The winEnvFilter method needs to be updated because some checks like https://github.com/openjdk/jdk/blob/431f46724658b703e995e518cb7a2149c50d6a9d/test/jdk/java/lang/ProcessBuilder/Basic.java#L1694 have the output on separate lines as opposed to the inline comma-separated format where removeWindowsAArch64ExpectedVars is used.

This pull request has now been integrated.

Changeset: f10c85fb
Author:    Saint Wesonga <saint.wesonga at microsoft.com>
Committer: Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f10c85fbc336f6908a4f1ecae9fb5ab52984f636
Stats:     23 lines in 1 file changed: 21 ins; 0 del; 2 mod

8367027: java/lang/ProcessBuilder/Basic.java fails on Windows AArch64

Reviewed-by: rriggs

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

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


More information about the core-libs-dev mailing list