From 508433df15a6c56db914b5c3b49667552867b7a6 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Wed, 17 Aug 2011 15:40:46 +1000 Subject: Stabilize autotests using QTest::qWaitForWindowShown on non-X11. X11 is currently the only platform with a "real" implementation of QTest::qWaitForWindowShown. All others merely process events for some fixed interval, and assume that this is sufficient for the window to be placed. In practice, the current interval is too short for slower machines. Change-Id: I956cd747d0b30577f5072a9a08da88dabc76906c Reviewed-on: http://codereview.qt.nokia.com/3060 Reviewed-by: Qt Sanity Bot Reviewed-by: Sergio Ahumada Reviewed-by: Jason McDonald --- src/testlib/qtestsystem.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/testlib/qtestsystem.h') diff --git a/src/testlib/qtestsystem.h b/src/testlib/qtestsystem.h index 6805bb7b6a..de20abeeee 100644 --- a/src/testlib/qtestsystem.h +++ b/src/testlib/qtestsystem.h @@ -76,12 +76,9 @@ namespace QTest #if defined(Q_WS_X11) qt_x11_wait_for_window_manager(window); QCoreApplication::processEvents(); -#elif defined(Q_WS_QWS) - Q_UNUSED(window); - qWait(100); #else Q_UNUSED(window); - qWait(50); + qWait(200); #endif return true; } -- cgit v1.2.3