diff options
Diffstat (limited to 'tests/auto/mng/tst_qmng.cpp')
-rw-r--r-- | tests/auto/mng/tst_qmng.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/mng/tst_qmng.cpp b/tests/auto/mng/tst_qmng.cpp index 7e37d97..b82ece1 100644 --- a/tests/auto/mng/tst_qmng.cpp +++ b/tests/auto/mng/tst_qmng.cpp @@ -39,12 +39,19 @@ class tst_qmng: public QObject Q_OBJECT private slots: + void initTestCase(); void readImage_data(); void readImage(); void readCorruptImage_data(); void readCorruptImage(); }; +void tst_qmng::initTestCase() +{ + if (!QImageReader::supportedImageFormats().contains("mng")) + QSKIP("The image format handler is not installed."); +} + void tst_qmng::readImage_data() { QTest::addColumn<QString>("fileName"); |