~andreas-pokorny/mir/fix-1626435

Viewing all changes in revision 3706.

  • Committer: Tarmac
  • Author(s): Andreas Pokorny
  • Date: 2016-09-16 06:47:52 UTC
  • mfrom: (3676.3.15 fix-ready-for-input)
  • Revision ID: tarmac-20160916064752-6fbwibics4rf1wb4
Solve two issues with the nested mir tests - and a bandaid for the third

This adds another server status to listen to - server being ready to receive user input. That is the case as soon as udev tells us about input devices found via the libinput fd, on in a nested setup as soon we have received the device information from the host server - thus after the surfaces of the nested server have been focused on the host server. This new status is used in the tests to avoid the unbounded sleeps.
  
The other issues in the tests are related to test setup and the broken way per surface cursor images (when backed by buffer streams) are implemented. The problem with the cursor is only observed when the feature is used together with a SoftwareCursor on the host compositor. We do not ship that a setup at the moment. So this MP weakens the success criteria. There are now FIXMEs explaining the problem. So only a bandaid for now.
  
Finally the second fixed issue: Segmentation faults because mock actions might be executed due to the problem described above while being removed. Fixes: https://bugs.launchpad.net/bugs/1523621.

Approved by mir-ci-bot, Alan Griffiths.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: