RFR: 8274453: (sctp) com/sun/nio/sctp/SctpChannel/CloseDescriptors.java test should be resilient to lsof warnings

Aleksey Shipilev shade at openjdk.java.net
Tue Sep 28 16:04:21 UTC 2021


Recently added test fails on my desktop in the course of newly added `tier4` runs. The reason is simple: the test verifies that lsof outputs no more than LIMIT_LINES (2) lines. And on my machine, lsof prints some warnings that blow that limit. In the patch, lsof -w is used to suppress the warnings.

Additional testing:
 - [x] Affected test now passes

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

Commit messages:
 - Fix

Changes: https://git.openjdk.java.net/jdk/pull/5739/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5739&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274453
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5739.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5739/head:pull/5739

PR: https://git.openjdk.java.net/jdk/pull/5739


More information about the nio-dev mailing list