RFR: 8367027: java/lang/ProcessBuilder/Basic.java fails on Windows AArch64
Saint Wesonga
duke at openjdk.org
Sat Sep 6 20:50:20 UTC 2025
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.
-------------
Commit messages:
- java/lang/ProcessBuilder/Basic.java fails on Windows AArch64
Changes: https://git.openjdk.org/jdk/pull/27131/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27131&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8367027
Stats: 23 lines in 1 file changed: 21 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/27131.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27131/head:pull/27131
PR: https://git.openjdk.org/jdk/pull/27131
More information about the core-libs-dev
mailing list