D19406: [autotests] Fix race condition in ShellClient::testUnresponsiveWindow
David Edmundson <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
davidedmundson created this revision. davidedmundson added a reviewer: KWin. Herald added a project: KWin. Herald added a subscriber: kwin. davidedmundson requested review of this revision. REVISION SUMMARY The test executable "kill" freezes itself after 1ms, supposedly after showing a window. However showing a window is not syncronous on wayland, it's illegal to map a buffer before getting a configure event from the server. This patch removes any potential for a race by having the server tell our test executable when to freeze. TEST PLAN Test still passed REPOSITORY R108 KWin BRANCH master REVISION DETAIL https://phabricator.kde.org/D19406 AFFECTED FILES autotests/integration/helper/kill.cpp autotests/integration/shell_client_test.cpp To: davidedmundson, #kwin Cc: kwin, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, alexeymin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart