Fix tst_QMdiSubWindow::emittingOfSignals CI failures

The test fails consistently on the CI (but never fails on any
of the developer machines). This is possibly a timing issue.

Change-Id: Ie40d9c38c3128a93898b0e50bfde5a754bd2b7fb
Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
Girish Ramakrishnan 2012-04-14 14:19:45 -07:00 committed by Qt by Nokia
parent 033eff02fe
commit 70cb9598af

View File

@ -98,10 +98,9 @@ static inline void triggerSignal(QMdiSubWindow *window, QMdiArea *workspace,
window->showMaximized();
qApp->processEvents();
window->showNormal();
qApp->processEvents();
QVERIFY(!window->isMinimized());
QVERIFY(!window->isMaximized());
QVERIFY(!window->isShaded());
QTRY_VERIFY(!window->isMinimized());
QTRY_VERIFY(!window->isMaximized());
QTRY_VERIFY(!window->isShaded());
} else if (signal == SIGNAL(aboutToActivate())) {
if (window->parent()) {
workspace->setActiveSubWindow(window);