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

Matthias Baesken mbaesken at openjdk.org
Mon Mar 4 08:09: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

looks like a couple of other gtests use the tmp dir too


grep -nH -r get_temp_directory  *
logging/logTestFixture.cpp:40:                         os::get_temp_directory(), os::file_separator(), os::current_process_id(),
logging/logTestUtils.inline.hpp:93:static const char* tmp_dir = os::get_temp_directory();
logging/test_logFileOutput.cpp:173:  ss.print("%s%s%s%d", os::get_temp_directory(), os::file_separator(), "tmplogdir", os::current_process_id());
os/linux/test_cgroupSubsystem_linux.cpp:45:  path.print_raw(os::get_temp_directory());


but seems the others at least clean up the created files as far as I can see.

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

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


More information about the hotspot-dev mailing list