Fix code coverage for the daemons
In #56 (closed), it turns out that registryd is not getting code coverage because it doesn't exit cleanly, and gcc's coverage data is written at program exit.
This MR introduces a mock-gnome-session.py
built upon python-dbusmock
. It is a mock implementation of gnome-session's interfaces, just enough to let the daemons register themselves against the fake session manager and get notified when the session ends - so they can exit gracefully.
With this, we get code coverage for registryd!
This does not fully fix #56 (closed), as atk-adaptor gets no coverage yet. I think this is because tests/at-spi2-atk/test-application
is not launched by the test runners. I'll do that in another MR.