summaryrefslogtreecommitdiffstats
path: root/tests/auto/jp2/tst_qjp2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/jp2/tst_qjp2.cpp')
-rw-r--r--tests/auto/jp2/tst_qjp2.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/jp2/tst_qjp2.cpp b/tests/auto/jp2/tst_qjp2.cpp
index 3400ece..5045eee 100644
--- a/tests/auto/jp2/tst_qjp2.cpp
+++ b/tests/auto/jp2/tst_qjp2.cpp
@@ -40,10 +40,17 @@ class tst_qjp2: public QObject
Q_OBJECT
private slots:
+ void initTestCase();
void readImage_data();
void readImage();
};
+void tst_qjp2::initTestCase()
+{
+ if (!QImageReader::supportedImageFormats().contains("jp2"))
+ QSKIP("The image format handler is not installed.");
+}
+
void tst_qjp2::readImage_data()
{
QTest::addColumn<QString>("fileName");