On Fri, 28 Feb 2025 00:05:23 GMT, Leonid Mesnik <lmes...@openjdk.org> wrote:
> The cpuLoad tests were updated to fail if -1.0 returns to catch bugs like > https://bugs.openjdk.org/browse/JDK-8350820 > > The -1.0 means that JDK can't obtain cpu load. It shouldn't be returned. > If this functionality doesn't work on certain configurations then they should > be excluded. > > The fix should be pushed after https://bugs.openjdk.org/browse/JDK-8350820 > I filed separate PR to backport fix easier. > Also, I haven't changed indentation and didn't change getSystemCpuLoad to > getCpuLoad. They return same. > Might be it would be better. just to rename the whole test later. This pull request has now been integrated. Changeset: 3c72c04d Author: Leonid Mesnik <lmes...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/3c72c04de7a43d265dae7160fe53baaaa8ae6f73 Stats: 5 lines in 2 files changed: 0 ins; 0 del; 5 mod 8350818: Improve OperatingSystemMXBean cpu load tests to not accept -1.0 by default Reviewed-by: kevinw ------------- PR: https://git.openjdk.org/jdk/pull/23833