Re-enable QFontDatabase test on Mac OS X.

This test has one stable failure on Mac.  Mark that failure with
QEXPECT_FAIL so that the rest of the test can be used by CI to catch
regressions.

Also, change the failing QVERIFY to QCOMPARE so that the mismatching
QStringList values will appear in the test output.

Task-number: QTBUG-23062
Change-Id: Icb0cccfe0bd5bc74a6a2c1ddba89c1f55f5e64de
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
Jason McDonald 2012-04-17 21:36:04 +10:00 committed by Qt by Nokia
parent 0bc02fd0d6
commit 14ba6240bb
2 changed files with 4 additions and 3 deletions

View File

@ -9,5 +9,3 @@ wince* {
additionalFiles.path = .
DEPLOYMENT += additionalFiles
}
mac: CONFIG += insignificant_test # QTBUG-23062

View File

@ -265,7 +265,10 @@ void tst_QFontDatabase::addAppFont()
QVERIFY(QFontDatabase::removeApplicationFont(id));
QCOMPARE(fontDbChangedSpy.count(), 2);
QVERIFY(db.families() == oldFamilies);
#ifdef Q_OS_MAC
QEXPECT_FAIL("font file", "QTBUG-23062", Continue);
#endif
QCOMPARE(db.families(), oldFamilies);
}
QTEST_MAIN(tst_QFontDatabase)