test: Mark tst_menubar::task256322_highlight as XFAIL

This test is unstable on Mac OS 10.7 with developer builds, so marking
it as XFAIL if it happens to fail.

Task-number: QTBUG-30565
Change-Id: If7094c3b19299f0dbe57cb82a8614032a75573d8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
This commit is contained in:
Sergio Ahumada 2013-04-29 12:13:11 +02:00 committed by The Qt Project
parent d59e9af592
commit b27e922e1c

View File

@ -1184,7 +1184,12 @@ void tst_QMenuBar::task256322_highlight()
QTest::mouseMove(win.menuBar(), nothingCenter);
QTRY_VERIFY(!menu2.isVisible());
QVERIFY(!menu.isVisible());
QCOMPARE(win.menuBar()->activeAction(), nothing);
QAction *activeAction = win.menuBar()->activeAction();
#ifdef Q_OS_MAC
if ((QSysInfo::MacintoshVersion >= QSysInfo::MV_10_7) && (activeAction != nothing))
QEXPECT_FAIL("", "QTBUG-30565: Unstable test", Continue);
#endif
QCOMPARE(activeAction, nothing);
QTest::mouseRelease(win.menuBar(), Qt::LeftButton, 0, nothingCenter);
}