tests: A couple of test isolation improvements
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 pwithnall@gnome.org