RFR: 8349288: runtime/os/windows/TestAvailableProcessors.java fails on localized Windows platform
Kazuhisa Takakuri
ktakakuri at openjdk.org
Mon Feb 10 06:23:38 UTC 2025
To resolve runtime/os/windows/TestAvailableProcessors.java failure, I made "systeminfo.exe" executed with "chcp 437". This ensures that the English message "OS Version: " is output on localized windows platforms.
I added the path C:\Windows\System32 to make chcp command recognized on the GHA Windows test machine. Without this addition, GHA will fail.
After this fix, I verified that the test passed.
https://github.com/openjdk/jdk/pull/22142
I refer to this fix.
tools/jpackage/windows/Win8301247Test.java does not run in GHA, so the problems with recognition of chcp command did not occur before.
Thanks.
-------------
Commit messages:
- 8349288: runtime/os/windows/TestAvailableProcessors.java fails on localized Windows platform
- 8349288: runtime/os/windows/TestAvailableProcessors.java fails on localized Windows platform
- 8349288: runtime/os/windows/TestAvailableProcessors.java fails on localized Windows platform
Changes: https://git.openjdk.org/jdk/pull/23536/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23536&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8349288
Stats: 8 lines in 1 file changed: 7 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/23536.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23536/head:pull/23536
PR: https://git.openjdk.org/jdk/pull/23536
More information about the hotspot-runtime-dev
mailing list