Run the ./gradlew test command. Task: src: Function: test Error: Failed
Expected behavior
Run the ./gradlew test command. Task: src: Function: test Error: Failed 0.0 seconds, org.apache.jmeter.functions.TestStringtoFile > testWriteToFileIOException (path) org.opentest4j.AssertionFailedError: This method'Stringtofile' should fail in a non-writable folder = = > Expected: but: Located in app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) Located in app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) Located in app//org.junit.jupiter.api.AssertFalse.failNotFalse(AssertFalse.java:63) Located in app//org.junit.jupiter.api.AssertFalse.assertFalse(AssertFalse.java:36) Located in app//org.junit.jupiter.api.Assertions.assertFalse(Assertions.java:239) Located in app//org.apache.jmeter.functions.TestStringtoFile.testWriteToFileIOException(TestStringtoFile.java:138)
Faults: 0.9 seconds, 15 completed, 1 failed, 0 skipped, org.apache.jmeter.functions.TestStringtoFile Failed 4.8 seconds, 268 completed, 1 failed, 5 skipped, Gradle test run: src: function: test
268 tests completed, 1 failed, 5 skipped
Actual behavior
success
Steps to reproduce the problem
Run the ./gradlew test command
JMeter Version
5.6.3
Java Version
OS Version
openEuler
Source: apache/jmeter