diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-03-22 10:33:42 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-23 16:47:28 +0100 |
commit | f217172d6dbd485cdacefb3dacd8b16eda5a1945 (patch) | |
tree | 3e5298df31b51e13be3d08ae559c3361958bd3b3 /src | |
parent | 52cd53a03e919ee739885296fa4a23b94959aa89 (diff) |
qWaitForWindow* default timeouts are 5 seconds
A widget window can be expected to show up faster, but on a busy CI
machine, OpenGL windows can take longer than 1 second.
Change-Id: I572cc86bf4d8beebcc565db8d6f2ff78e55c2ac0
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/testlib/qtestsystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qtestsystem.h b/src/testlib/qtestsystem.h index 0625af0213..2a719e96f1 100644 --- a/src/testlib/qtestsystem.h +++ b/src/testlib/qtestsystem.h @@ -70,7 +70,7 @@ namespace QTest } #ifdef QT_GUI_LIB - inline static bool qWaitForWindowActive(QWindow *window, int timeout = 1000) + inline static bool qWaitForWindowActive(QWindow *window, int timeout = 5000) { QElapsedTimer timer; timer.start(); @@ -99,7 +99,7 @@ namespace QTest return window->isActive(); } - inline static bool qWaitForWindowExposed(QWindow *window, int timeout = 1000) + inline static bool qWaitForWindowExposed(QWindow *window, int timeout = 5000) { QElapsedTimer timer; timer.start(); |