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:
parent
b7ca6a81db
commit
e1f1d0e5a1
@ -465,7 +465,11 @@ namespace QTest {
|
|||||||
"SOURCES += project.cpp\n"
|
"SOURCES += project.cpp\n"
|
||||||
"QT -= core gui\n"
|
"QT -= core gui\n"
|
||||||
"INCLUDEPATH += . ");
|
"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
|
#ifndef QT_NO_DEBUG
|
||||||
projectFile.write("\nCONFIG += debug\n");
|
projectFile.write("\nCONFIG += debug\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user