RFR: 8359402: TesCloseDescriptors.java should throw SkippedException when there is no lsof/sctp
SendaoYan
syan at openjdk.org
Fri Jun 13 06:41:16 UTC 2025
Hi all,
Test com/sun/nio/sctp/SctpChannel/CloseDescriptors.java should throw jtreg.SkippedException when there is no lsof command or there is no SCTP in test machine.
Before this PR, this test report Execution successful when there is no SCTP.
--------------------------------------------------
TEST: com/sun/nio/sctp/SctpChannel/CloseDescriptors.java
TEST RESULT: Passed. Execution successful
--------------------------------------------------
After this PR, it will report `jtreg.SkippedException` when there is no SCTP
--------------------------------------------------
TEST: com/sun/nio/sctp/SctpChannel/CloseDescriptors.java
TEST RESULT: Passed. Skipped: jtreg.SkippedException: SCTP protocol is not supported
--------------------------------------------------
Change has been verified locally, test-fix only, no risk.
-------------
Commit messages:
- 8359402: TesCloseDescriptors.java should throw SkippedException when there is no lsof/sctp
Changes: https://git.openjdk.org/jdk/pull/25790/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25790&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8359402
Stats: 9 lines in 1 file changed: 2 ins; 4 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/25790.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25790/head:pull/25790
PR: https://git.openjdk.org/jdk/pull/25790
More information about the nio-dev
mailing list