RFR: 8368846: java/io/File/createTempFile/TargetDirectory fails when run by root user
Brian Burkhalter
bpb at openjdk.org
Thu Oct 9 15:35:24 UTC 2025
On Thu, 9 Oct 2025 14:28:38 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> This will silently skip the test.
I ran the test as root and as my normal user. For the normal user one gets
STARTED TargetDirectory::testReadOnlyDirectory 'testReadOnlyDirectory()'
whereas for root
SKIPPED TargetDirectory::testReadOnlyDirectory 'testReadOnlyDirectory()' @DisabledIf("jdk.test.lib.Platform#isRoot") evaluated to true
which looked okay to me.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27542#discussion_r2417154078
More information about the core-libs-dev
mailing list