Stabilize QWidget-test alienwidgets on XCB.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 30 Jul 2012 20:54:08 +0000 (22:54 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 31 Jul 2012 09:13:35 +0000 (11:13 +0200)
Use QTRY_VERIFY for the mappped attribute check.

Change-Id: I3cbde9122405bf7067f3702193e80636edc8c5c6
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp

index ad9317a..bb4525f 100644 (file)
@@ -7148,7 +7148,7 @@ void tst_QWidget::alienWidgets()
         child.setAttribute(Qt::WA_DontCreateNativeAncestors);
         window.show();
         QVERIFY(QTest::qWaitForWindowExposed(&window));
-        QVERIFY(child.testAttribute(Qt::WA_Mapped));
+        QTRY_VERIFY(child.testAttribute(Qt::WA_Mapped));
         widget.hide();
         QTRY_VERIFY(!child.testAttribute(Qt::WA_Mapped));
     }