diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-11-05 13:38:35 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-11-05 13:41:17 (GMT) |
commit | 24675593113167bfffcb4791e9c3e0865a0c3244 (patch) | |
tree | 6c3994433c06086ee756449806b1578b321607f9 /tests/auto | |
parent | 4488ab7d7a0b9ff72d9614b68a7cdb72286ac2a3 (diff) | |
download | Qt-24675593113167bfffcb4791e9c3e0865a0c3244.zip Qt-24675593113167bfffcb4791e9c3e0865a0c3244.tar.gz Qt-24675593113167bfffcb4791e9c3e0865a0c3244.tar.bz2 |
Improve the reliability of tst_QGridLayout::minMaxSize()
As indicated by the comments, if the test fails, the timeouts may need
to be increased. Since this is failing on the test cluster, where CPU
time is limited, doubling the timeouts seems to do the trick.
Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qgridlayout/tst_qgridlayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qgridlayout/tst_qgridlayout.cpp b/tests/auto/qgridlayout/tst_qgridlayout.cpp index 7c320be..46e2a03 100644 --- a/tests/auto/qgridlayout/tst_qgridlayout.cpp +++ b/tests/auto/qgridlayout/tst_qgridlayout.cpp @@ -920,9 +920,9 @@ void tst_QGridLayout::minMaxSize() #if defined(Q_WS_X11) qt_x11_wait_for_window_manager(m_toplevel); // wait for the show #endif - QTest::qWait(20); + QTest::qWait(40); m_toplevel->adjustSize(); - QTest::qWait(120); // wait for the implicit adjustSize + QTest::qWait(240); // wait for the implicit adjustSize // If the following fails we might have to wait longer. // If that does not help there is likely a problem with the implicit adjustSize in show() if (!fixedSize.isValid()) { |