From c661cdc4fa8a3ba69c6b435f9d4916ad2ac7bf84 Mon Sep 17 00:00:00 2001 From: Andrew den Exter Date: Thu, 22 Dec 2011 11:30:03 +1000 Subject: Fix test failures with shadow builds. QFINDTESTDATA uses __FILE__ to determine the source directory, which means it finds the wrong source directory when the macro is used from a shared base class. Define the correct source directory in a pri file and include that wherever QDeclarativeDataTest is used. Change-Id: If3ef435f4bb3049733f49402338303c8b440f1fa Reviewed-by: Michael Brasser --- .../declarative/qdeclarativeconnection/qdeclarativeconnection.pro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro') diff --git a/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro b/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro index 6e48be9937..bb863c5262 100644 --- a/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro +++ b/tests/auto/declarative/qdeclarativeconnection/qdeclarativeconnection.pro @@ -2,9 +2,9 @@ CONFIG += testcase TARGET = tst_qdeclarativeconnection macx:CONFIG -= app_bundle -SOURCES += tst_qdeclarativeconnection.cpp \ - ../../shared/util.cpp -HEADERS += ../../shared/util.h +SOURCES += tst_qdeclarativeconnection.cpp + +include (../../shared/util.pri) testDataFiles.files = data testDataFiles.path = . -- cgit v1.2.3