diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-30 13:57:35 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-30 13:58:46 (GMT) |
commit | fa3cda0324324f595d0d1231027443673b7c05ea (patch) | |
tree | 8916ad1f9204006a5ace3a564810e0cd57fe1a01 /tests/auto/qstatusbar | |
parent | 3fa5162526a2d0dba0abd00c52f44ac93f9d78f3 (diff) | |
download | Qt-fa3cda0324324f595d0d1231027443673b7c05ea.zip Qt-fa3cda0324324f595d0d1231027443673b7c05ea.tar.gz Qt-fa3cda0324324f595d0d1231027443673b7c05ea.tar.bz2 |
Stabilize more test on X11
Each times the test are run, pulse show different failures.
Diffstat (limited to 'tests/auto/qstatusbar')
-rw-r--r-- | tests/auto/qstatusbar/tst_qstatusbar.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/auto/qstatusbar/tst_qstatusbar.cpp b/tests/auto/qstatusbar/tst_qstatusbar.cpp index 3727882..9774559 100644 --- a/tests/auto/qstatusbar/tst_qstatusbar.cpp +++ b/tests/auto/qstatusbar/tst_qstatusbar.cpp @@ -48,6 +48,8 @@ #include <QMainWindow> #include <QSizeGrip> +#include "../../shared/util.h" + //TESTED_CLASS= //TESTED_FILES= @@ -177,7 +179,7 @@ void tst_QStatusBar::setSizeGripEnabled() qt_x11_wait_for_window_manager(&mainWindow); #endif - QVERIFY(statusBar->isVisible()); + QTRY_VERIFY(statusBar->isVisible()); QPointer<QSizeGrip> sizeGrip = qFindChild<QSizeGrip *>(statusBar); QVERIFY(sizeGrip); QVERIFY(sizeGrip->isVisible()); @@ -223,11 +225,8 @@ void tst_QStatusBar::setSizeGripEnabled() qApp->processEvents(); mainWindow.showNormal(); -#ifdef Q_WS_X11 - qt_x11_wait_for_window_manager(&mainWindow); -#endif qApp->processEvents(); - QVERIFY(sizeGrip->isVisible()); + QTRY_VERIFY(sizeGrip->isVisible()); } void tst_QStatusBar::task194017_hiddenWidget() |