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

This avoids crashing when a test fails
This commit is contained in:
Ismael Asensio 2022-04-11 13:06:29 +02:00
parent 374e949182
commit cb55532135

View file

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