diff options
author | Janne Juntunen <janne.juntunen@qt.io> | 2022-08-08 09:59:40 +0300 |
---|---|---|
committer | Janne Juntunen <janne.juntunen@qt.io> | 2022-08-08 20:38:40 +0300 |
commit | dfaefa6c5e3ed360e97101a7bc750ee0a46114f4 (patch) | |
tree | 90b71857887a81d868f32ca654095b5782a1e0d1 | |
parent | 554842766faae7d6dc855bc91b4d4cd1c2838de3 (diff) |
tst_qimage: skip exifReadComments when the feature is not active
We need to skip the exifReadComments test case if reading text from
image has been configured off, like in webOS's Yocto recipe for QtBase.
Fixes: QTBUG-105393
Pick-to: 6.4
Change-Id: If45872ca7ed26620fa38bc6b47132363d661acdc
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
-rw-r--r-- | tests/auto/gui/image/qimage/tst_qimage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/gui/image/qimage/tst_qimage.cpp b/tests/auto/gui/image/qimage/tst_qimage.cpp index d04d42e0b2..898345e44a 100644 --- a/tests/auto/gui/image/qimage/tst_qimage.cpp +++ b/tests/auto/gui/image/qimage/tst_qimage.cpp @@ -3435,6 +3435,9 @@ void tst_QImage::exifInvalidData() void tst_QImage::exifReadComments() { +#ifdef QT_NO_IMAGEIO_TEXT_LOADING + QSKIP("Reading text from image file is configured off"); +#endif QImage image; QVERIFY(image.load(m_prefix + "jpeg_exif_utf8_comment.jpg")); QVERIFY(!image.isNull()); |