forked from qt-creator/qt-creator
CppEditor: Tests: Use QTemporaryDir and avoid writing into creator source tree
This should improve results of CI tests where multiple creator instances execute the plugin tests. Change-Id: I557a0964568655662108df201589ba369096f4bf Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -60,6 +60,7 @@ class CPPTOOLS_EXPORT TestDocument
|
||||
public:
|
||||
TestDocument(const QByteArray &fileName, const QByteArray &source, char cursorMarker = '@');
|
||||
|
||||
QString baseDirectory() const { return m_baseDirectory; }
|
||||
void setBaseDirectory(const QString &baseDirectory) { m_baseDirectory = baseDirectory; }
|
||||
|
||||
QString filePath() const;
|
||||
@@ -127,7 +128,7 @@ private:
|
||||
QList<ProjectExplorer::Project *> m_openProjects;
|
||||
};
|
||||
|
||||
class TemporaryDir
|
||||
class CPPTOOLS_EXPORT TemporaryDir
|
||||
{
|
||||
Q_DISABLE_COPY(TemporaryDir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user