Skip to content

tests: A couple of test isolation improvements

Philip Withnall requested to merge pwithnall/glib:test-improvements into main

See the commit messages for details. Found by running Bustle/dbus-monitor alongside the full GLib test suite, logging both the session and the system bus, and seeing what looked like it came from the unit tests.

After this MR is applied, the only traffic on the bus caused by the tests is bindfs traffic from the g-file-info-filesystem-readonly test, which I think is unavoidable (unless we were to run the test in a mount namespace, but to do that we need CAP_SYS_ADMIN permissions to use CLONE_NEWNS, and running a test with CAP_SYS_ADMIN isn’t feasible).

Signed-off-by: Philip Withnall

Merge request reports