From a4ec79788369aff1c808af4cfecd0f03a8ba3373 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 23 Sep 2019 22:57:50 +0300 Subject: [PATCH] [autotests] Gracefully destroy xdg client --- autotests/integration/internal_window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autotests/integration/internal_window.cpp b/autotests/integration/internal_window.cpp index 9d4bf1f04f..111695e7b2 100644 --- a/autotests/integration/internal_window.cpp +++ b/autotests/integration/internal_window.cpp @@ -435,6 +435,10 @@ void InternalWindowTest::testKeyboardTriggersLeave() kwinApp()->platform()->keyboardKeyPressed(KEY_A, timestamp++); QVERIFY(enteredSpy.wait()); kwinApp()->platform()->keyboardKeyReleased(KEY_A, timestamp++); + + // Destroy the test client. + shellSurface.reset(); + QVERIFY(Test::waitForWindowDestroyed(c)); } void InternalWindowTest::testTouch()