ham1 opened a new pull request, #6867: URL: https://github.com/apache/jmeter/pull/6867
## Description `TestStringtoFile.testWriteToFileIOException` makes a file read-only and expects `__StringToFile` to fail writing it. Root ignores file permissions, so when the tests run as root (common in containers) the write succeeds and the test fails. The test now skips itself with a JUnit assumption when the file is still writable after `setWritable(false)`. Nothing changes for non-root runs. ## Motivation and Context Fixes #6430 ## How Has This Been Tested? - `./gradlew :src:functions:test --tests org.apache.jmeter.functions.TestStringtoFile` as a normal user: 15 passed, 0 skipped. - The skip path itself was not run, as the test machine does not run as root. ## Types of changes - Test fix, no user-visible change, so no `changes.xml` entry. Generated-by: Claude Code 2.1.332 (Claude Opus 5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
