test/rules: Ensure we destroy the test window on cleanup
This avoids crashing when a test fails
This commit is contained in:
parent
374e949182
commit
cb55532135
1 changed files with 4 additions and 0 deletions
|
@ -206,6 +206,10 @@ void TestXdgShellClientRules::init()
|
|||
|
||||
void TestXdgShellClientRules::cleanup()
|
||||
{
|
||||
if (!m_shellSurface.isNull()) {
|
||||
destroyTestWindow();
|
||||
}
|
||||
|
||||
Test::destroyWaylandConnection();
|
||||
|
||||
// Wipe the window rule config clean.
|
||||
|
|
Loading…
Reference in a new issue