From 93186f1b0cf01b01b0f1d1310a707492b882715f Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 29 Jun 2017 11:28:42 +0200 Subject: Attempt to stabilize tst_applicationwindow::attachedProperties() Change-Id: I49539d41d78c2670bcbed1829800a5974f91675b Reviewed-by: Qt CI Bot Reviewed-by: Mitch Curtis --- tests/auto/applicationwindow/tst_applicationwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/auto/applicationwindow') diff --git a/tests/auto/applicationwindow/tst_applicationwindow.cpp b/tests/auto/applicationwindow/tst_applicationwindow.cpp index af5a7544..e04c9450 100644 --- a/tests/auto/applicationwindow/tst_applicationwindow.cpp +++ b/tests/auto/applicationwindow/tst_applicationwindow.cpp @@ -441,7 +441,8 @@ void tst_applicationwindow::attachedProperties() QVERIFY(!childItem->property("attached_header").value()); QVERIFY(!childItem->property("attached_footer").value()); QVERIFY(!childItem->property("attached_overlay").value()); - childAppWindow->hide(); + childAppWindow->close(); + qApp->processEvents(); childWindow->show(); childWindow->requestActivate(); @@ -488,7 +489,7 @@ void tst_applicationwindow::attachedProperties() QVERIFY(!childItem->property("attached_header").value()); QVERIFY(!childItem->property("attached_footer").value()); QVERIFY(!childItem->property("attached_overlay").value()); - childWindow->hide(); + childWindow->close(); // ### A temporary workaround to unblock the CI until the crash caused // by https://codereview.qt-project.org/#/c/108517/ has been fixed... -- cgit v1.2.3