Changeset View
Changeset View
Standalone View
Standalone View
plugins/qmakemanager/tests/test_qmakeproject.cpp
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | |||||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | void TestQMakeProject::testBuildDirectory() | 84 | void TestQMakeProject::testBuildDirectory() | ||
85 | { | 85 | { | ||
86 | QFETCH(QString, projectName); | 86 | QFETCH(QString, projectName); | ||
87 | QFETCH(QString, target); | 87 | QFETCH(QString, target); | ||
88 | QFETCH(QString, expected); | 88 | QFETCH(QString, expected); | ||
89 | 89 | | |||
90 | const QString buildDir = QStringLiteral("/tmp/some/path"); // some dummy directory to build (nothing will be built anyway) | 90 | const QString buildDir = QDir::rootPath() + QStringLiteral("tmp/some/path"); // some dummy directory to build (nothing will be built anyway) | ||
91 | 91 | | |||
92 | foreach (IProject* p, ICore::self()->projectController()->projects()) { | 92 | foreach (IProject* p, ICore::self()->projectController()->projects()) { | ||
93 | ICore::self()->projectController()->closeProject(p); | 93 | ICore::self()->projectController()->closeProject(p); | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | // setup project config, to avoid build dir chooser dialog popping up | 96 | // setup project config, to avoid build dir chooser dialog popping up | ||
97 | { | 97 | { | ||
98 | // note: all checks from QMakeProjectManager::projectNeedsConfiguration must be satisfied | 98 | // note: all checks from QMakeProjectManager::projectNeedsConfiguration must be satisfied | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |