mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
skip the QFileIconProvider::iconType() test case if there is no system icon theme
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
acaec80ae8
commit
7bcef3e549
1 changed files with 6 additions and 1 deletions
|
@ -74,6 +74,12 @@ void tst_QFileIconProvider::iconType_data()
|
|||
void tst_QFileIconProvider::iconType()
|
||||
{
|
||||
QFETCH(QFileIconProvider::IconType, type);
|
||||
|
||||
const QString icontheme = QIcon::themeName();
|
||||
if (icontheme.isEmpty() || icontheme == QLatin1String("hicolor")) {
|
||||
QSKIP("This test requires system icon theme", SkipAll);
|
||||
}
|
||||
|
||||
SubQFileIconProvider provider;
|
||||
QVERIFY(!provider.icon(type).isNull());
|
||||
}
|
||||
|
@ -104,7 +110,6 @@ void tst_QFileIconProvider::iconInfo()
|
|||
QVERIFY(info.exists());
|
||||
}
|
||||
SubQFileIconProvider provider;
|
||||
// we should always get an icon
|
||||
QVERIFY(!provider.icon(info).isNull());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue