diff options
author | Janne Juntunen <janne.juntunen@qt.io> | 2021-12-30 15:52:30 +0200 |
---|---|---|
committer | Janne Juntunen <janne.juntunen@qt.io> | 2022-01-13 20:47:22 +0200 |
commit | b84f4a350d3c67bd36de92a7cd7120ece9621896 (patch) | |
tree | 96bcdb44eded1281cb4b73b8120d66517dedd14e /tests/auto | |
parent | 13d2e13290d61fbe85c0744b6dc4115c07d4a1fa (diff) |
tst_QImageWriter: skip writing unsupported image formats
Do not try to test writing of image formats which are not supported on
the platform under testing. This test was failing for .ico files on
webOS.
Fixes: QTQAINFRA-4722
Pick-to: 6.3
Change-Id: Ic7d40d9751e0f921d9721c01492cca28d798e141
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp b/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp index 6ce8060306..2f3c744fd9 100644 --- a/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp +++ b/tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp @@ -281,6 +281,8 @@ void tst_QImageWriter::writeImage2() QFETCH(QByteArray, format); QFETCH(QImage, image); + SKIP_IF_UNSUPPORTED(format); + //we reduce the scope of writer so that it closes the associated file // and QFile::remove can actually work { |