Fixed qsharedpointer unittest on windows

- Use source file location as working directory for externaltests

Change-Id: Ic05259f48eece920b348ccbde9ba80c90dedfdd2
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Kurt Korbatits 2012-02-01 13:33:08 +10:00 committed by Qt by Nokia
parent b7ca6a81db
commit e1f1d0e5a1

View File

@ -465,7 +465,11 @@ namespace QTest {
"SOURCES += project.cpp\n"
"QT -= core gui\n"
"INCLUDEPATH += . ");
projectFile.write(QFile::encodeName(QDir::currentPath()));
QString workingDir = QDir::currentPath();
if (extraProgramSources.count() > 0)
workingDir = QFileInfo(extraProgramSources.first()).absolutePath();
projectFile.write(QFile::encodeName(workingDir));
#ifndef QT_NO_DEBUG
projectFile.write("\nCONFIG += debug\n");