Fix qlayout autotest build for WinCE.
authorJanne Anttila <janne.anttila@digia.com>
Tue, 19 Jun 2012 08:22:46 +0000 (11:22 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Aug 2012 11:18:08 +0000 (13:18 +0200)
SRCDIR was not defined for WinCE but it should no longer be used.
Fixed test case to use QFINDTESTDATA instead.

Change-Id: I07cbf7d42790d33e2d205d1682ec10e7577a92bd
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
tests/auto/widgets/kernel/qlayout/qlayout.pro
tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp

index 4f4457b..c7751aa 100644 (file)
@@ -9,8 +9,6 @@ wince* {
    addFiles.path = .
    DEPLOYMENT += addFiles
 } else {
-   DEFINES += SRCDIR=\\\"$$PWD\\\"
-
    TESTDATA += baseline/*
 }
 DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
index 6473764..4ada753 100644 (file)
@@ -152,7 +152,7 @@ void tst_QLayout::smartMaxSize()
 {
     QVector<int> expectedWidths; 
 
-    QFile f(QLatin1String(SRCDIR "/baseline/smartmaxsize"));
+    QFile f(QFINDTESTDATA("baseline/smartmaxsize"));
 
     QCOMPARE(f.open(QIODevice::ReadOnly | QIODevice::Text), true);