RFR: JDK-8327071: [Testbug] g-tests for cgroup leave files in /tmp on linux

Thomas Stuefe stuefe at openjdk.org
Sat Mar 2 08:30:52 UTC 2024


On Fri, 1 Mar 2024 11:00:01 GMT, Arno Zeller <azeller at openjdk.org> wrote:

> After each run of the g-tests for cgroups on Linux there are three new files left in /tmp.
> 
> cgroups-test-jdk.pid<pid>.cgroupTest.SubSystemFileLineContentsSingleLine
> cgroups-test-jdk.pid<pid>.cgroupTest.SubSystemFileLineContentsMultipleLinesSuccessCases
> cgroups-test-jdk.pid<pid>.cgroupTest.SubSystemFileLineContentsMultipleLinesErrorCases

Hi @ArnoZeller, I wonder why these files have to live in tmp. Why can't they not live in the current directory, that way if we run gtest via jtreg tests, they would be cleaned automatically, and be subject to `-retain` if needed. @jdksjolen do you know why ?

Other than that, if they have to live in temp, the patch is of course fine.

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

PR Comment: https://git.openjdk.org/jdk/pull/18077#issuecomment-1974705490


More information about the hotspot-dev mailing list