Cleanups to simplify adding more tests
I basically wanted to add tests for some upcoming gesture code but that turned into a detour:
In the tests so far we were lucky since we never destroyed the server object. If we want to do so we have to make sure phoc_server_setup ()
runs just once per instance so:
- make sure we can't run
phoc_server_setup ()
multiple times - allow to create
phoc_server
again after the last ref was dropped - fix the fallout
The x11 backend seems to get confused when restarted multiple times in the same process when xwayland is enabled as well so i opted to disable that for the moment.
To prove that the above works also with a mainloop we add a test that runs /bin/true
and /bin/false
.