summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp')
-rw-r--r--tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp b/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp
index a3644efd53..761fbcc7a7 100644
--- a/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp
+++ b/tests/benchmarks/plugins/imageformats/jpeg/jpeg.cpp
@@ -59,7 +59,9 @@ void tst_jpeg::jpegDecodingQtWebkitStyle()
{
// QtWebkit currently calls size() to get the image size for layouting purposes.
// Then when it is in the viewport (we assume that here) it actually gets decoded.
- QFile inputJpeg(SRCDIR "n900.jpeg");
+ QString testFile = QFINDTESTDATA("n900.jpeg");
+ QVERIFY2(!testFile.isEmpty(), "cannot find test file n900.jpeg!");
+ QFile inputJpeg(testFile);
QVERIFY(inputJpeg.exists());
inputJpeg.open(QIODevice::ReadOnly);
QByteArray imageData = inputJpeg.readAll();