https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8537

            Bug ID: 8537
           Summary: t/SATest.pm can give spamd a test port that is already
                    in use
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Regression Tests
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

Created attachment 6239
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=6239&action=edit
Listen on each candidate spamd test port before choosing it

t/SATest.pm function probably_unused_spamd_port() uses netstat as part of its
method to exclude ports already in use, but many systems no longer have
netstat, causing an intermittent failure in tests that run spamd when a port is
selected that is in use.

The attached patch makes probably_unused_spamd_port() listen on each candidate
port the way spamd will, and pick another port if that fails.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to