From: Kurt Korbatits Date: Mon, 16 Jan 2012 23:41:17 +0000 (+1000) Subject: Changed qpainter unittest to work from installation directory X-Git-Tag: qt-v5.0.0-alpha1~1776 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=502b64e06a27c8170c3dc5532ec139b4030268f1;p=profile%2Fivi%2Fqtbase.git Changed qpainter unittest to work from installation directory - Changed to use QFINDTESTDATA and TESTDATA Change-Id: If75ae2b8e39f6388f4e84ed4aa2681b5a5917e81 Reviewed-by: Kurt Korbatits Reviewed-by: Rohan McGovern Reviewed-by: Jason McDonald --- diff --git a/tests/auto/gui/painting/qpainter/qpainter.pro b/tests/auto/gui/painting/qpainter/qpainter.pro index 716d70c..0209043 100644 --- a/tests/auto/gui/painting/qpainter/qpainter.pro +++ b/tests/auto/gui/painting/qpainter/qpainter.pro @@ -4,13 +4,7 @@ TARGET = tst_qpainter QT += widgets widgets-private printsupport testlib SOURCES += tst_qpainter.cpp -wince* { - addFiles.files = drawEllipse drawLine_rop_bitmap drawPixmap_rop drawPixmap_rop_bitmap task217400.png - addFiles.path = . - DEPLOYMENT += addFiles - DEFINES += SRCDIR=\\\".\\\" -} else { - DEFINES += SRCDIR=\\\"$$PWD\\\" -} - mac*:CONFIG+=insignificant_test + +TESTDATA += drawEllipse/* drawLine_rop_bitmap/* drawPixmap_rop/* drawPixmap_rop_bitmap/* \ + task217400.png diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp index d6511d4..4abaa34 100644 --- a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp +++ b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp @@ -3108,7 +3108,7 @@ void tst_QPainter::drawImage_task217400() { QFETCH(QImage::Format, format); - const QImage src = QImage(QString(SRCDIR) + "/task217400.png") + const QImage src = QImage(QFINDTESTDATA("task217400.png")) .convertToFormat(format); QVERIFY(!src.isNull());