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