diff options
Diffstat (limited to 'tests/auto/dds/tst_qdds.cpp')
-rw-r--r-- | tests/auto/dds/tst_qdds.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/dds/tst_qdds.cpp b/tests/auto/dds/tst_qdds.cpp index ec731c2..ca66ec6 100644 --- a/tests/auto/dds/tst_qdds.cpp +++ b/tests/auto/dds/tst_qdds.cpp @@ -40,6 +40,7 @@ class tst_qdds: public QObject Q_OBJECT private slots: + void initTestCase(); void readImage_data(); void readImage(); void testMipmaps_data(); @@ -48,6 +49,12 @@ private slots: void testWriteImage(); }; +void tst_qdds::initTestCase() +{ + if (!QImageReader::supportedImageFormats().contains("dds")) + QSKIP("The image format handler is not installed."); +} + void tst_qdds::readImage_data() { QTest::addColumn<QString>("fileName"); |