diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-06-15 00:00:46 (GMT) |
---|---|---|
committer | Kurt Korbatits <kurt.korbatits@nokia.com> | 2010-06-15 00:00:46 (GMT) |
commit | aa97c7b7a71ddaf3f01f312658b9a43428846aee (patch) | |
tree | c2b5e6624f48ca188a6a20b83b77288837f48a8d /tests/auto/qimagereader | |
parent | be3f7e2d9a4e4670025d0f8d9a66301502ee22ef (diff) | |
download | Qt-aa97c7b7a71ddaf3f01f312658b9a43428846aee.zip Qt-aa97c7b7a71ddaf3f01f312658b9a43428846aee.tar.gz Qt-aa97c7b7a71ddaf3f01f312658b9a43428846aee.tar.bz2 |
Fixed unit test failure in qimagereader.
This bug was introduced with bug fix 558089fb21e7f388f9810c51abbd9bf3872b2178
Diffstat (limited to 'tests/auto/qimagereader')
-rw-r--r-- | tests/auto/qimagereader/tst_qimagereader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qimagereader/tst_qimagereader.cpp b/tests/auto/qimagereader/tst_qimagereader.cpp index 99244c2..fc2582f 100644 --- a/tests/auto/qimagereader/tst_qimagereader.cpp +++ b/tests/auto/qimagereader/tst_qimagereader.cpp @@ -1763,14 +1763,14 @@ void tst_QImageReader::testIgnoresFormatAndExtension() QFETCH(QString, expected); QList<QByteArray> formats = QImageReader::supportedImageFormats(); - QString fileNameBase = "images/" + name + "."; + QString fileNameBase = prefix + name + "."; foreach (const QByteArray &f, formats) { if (f == extension) continue; QFile tmp(QDir::tempPath() + "/" + name + "_" + expected + "." + f); - QFile::copy(fileNameBase + extension, QFileInfo(tmp).absoluteFilePath()); + QVERIFY(QFile::copy(fileNameBase + extension, QFileInfo(tmp).absoluteFilePath())); QString format; QImage image; |