From b1b66965f1ec6eae547cc4f70f8271bd39ded6da Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Wed, 29 Sep 2021 16:57:40 +0000 Subject: [PATCH] 8274453: (sctp) com/sun/nio/sctp/SctpChannel/CloseDescriptors.java test should be resilient to lsof warnings Reviewed-by: dfuchs --- test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java b/test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java index 35e5bcbcc0949..c8ed8a881f677 100644 --- a/test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java +++ b/test/jdk/com/sun/nio/sctp/SctpChannel/CloseDescriptors.java @@ -120,7 +120,7 @@ private static void doIt(int port) throws Exception { private static boolean check() throws Exception { long myPid = ProcessHandle.current().pid(); ProcessBuilder pb = new ProcessBuilder( - "lsof", "-U", "-a", "-p", Long.toString(myPid)); + "lsof", "-U", "-a", "-w", "-p", Long.toString(myPid)); pb.redirectErrorStream(true); Process p = pb.start(); p.waitFor();