RFR: 8287663 Add a regression test for JDK-8287073
Ioi Lam
iklam at openjdk.java.net
Mon Jun 6 23:09:11 UTC 2022
On Thu, 2 Jun 2022 14:32:28 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> This adds a regression test for a recent fix (JDK-8287073). I've restructured the linux specific JDK code to call a separate static function to enable this test. It'll help future tests too.
>
> Testing:
> - [x] Container tests continue to pass + GHA
> - [x] New regression test fails prior the code fix of JDK-8287073 and passes with it
Not specific to this PR, but we have a general problem with lots of duplication between these two files. E.g.,
https://github.com/openjdk/jdk/blob/a50b06e85124f61b5133189a2a2e461753d5d9e7/test/hotspot/jtreg/containers/cgroup/CgroupSubsystemFactory.java#L132-L143
https://github.com/openjdk/jdk/blob/a50b06e85124f61b5133189a2a2e461753d5d9e7/test/jdk/jdk/internal/platform/cgroup/TestCgroupSubsystemFactory.java#L130-L143
We should try to consolidate these test cases to improve maintainability.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8993
More information about the serviceability-dev
mailing list