]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: Allow test-resolved-stream to run concurrently 22327/head
authorJoan Bruguera <joanbrugueram@gmail.com>
Sun, 30 Jan 2022 16:56:32 +0000 (17:56 +0100)
committerJoan Bruguera <joanbrugueram@gmail.com>
Tue, 1 Feb 2022 18:25:32 +0000 (19:25 +0100)
commitc76120f1b82f7e1c6a53b1569087db462c21b7d1
treee7acb417c7bbe0b1762c836262253f28c8e709e6
parent839a70c3534ce10ed7a66b5925f4570d88b2b64a
resolved: Allow test-resolved-stream to run concurrently

Since test-resolved-stream brings up a simple DNS server on 127.0.0.1:12345,
only one instance could run at a time, so it would fail when run like
`meson test -C build test-resolved-stream --repeat=1000`.
Similarly, if by chance something is up on port 12345, the test would fail.

To make the test more reliable, run it in an isolated user + network namespace.
If this fails (some distributions disable user namespaces), just run as before.
src/resolve/test-resolved-stream.c