libdill icon indicating copy to clipboard operation
libdill copied to clipboard

Parallel test suite execution causes tests to fail

Open enter-github-username opened this issue 1 year ago • 0 comments

Running the test suite in parallel via the -j<number of tests to run in parallel> flag of make currently leads to test failures. This is likely caused by some tests trying to bind to the same port. If two such tests (e.g. tests/suffix and tests/prefix, both of which bind to port 5555) are executed at the same time, at least one of the tests will fail.

You may be able to reproduce this issue by running the test suite with make -j16 check. If a test is affected, the log files will contain entries like:

Address already in use [98] (tests/suffix.c:58)

A possible solution may be to use a different port to bind to for each test.

enter-github-username avatar Feb 19 '23 19:02 enter-github-username