test/rules: Ensure we destroy the test window on cleanup

This avoids crashing when a test fails
master
Ismael Asensio 2 years ago
parent 374e949182
commit cb55532135

@ -206,6 +206,10 @@ void TestXdgShellClientRules::init()
void TestXdgShellClientRules::cleanup()
{
if (!m_shellSurface.isNull()) {
destroyTestWindow();
}
Test::destroyWaylandConnection();
// Wipe the window rule config clean.

Loading…
Cancel
Save