forked from qt-creator/qt-creator
CppTools: Fix test_modelmanager_extraeditorsupport_uiFiles
The test was broken since the QmakeProject was changed to work asynchronously. FAIL! : CppTools::Internal::CppToolsPlugin::test_modelmanager_extraeditorsupport_uiFiles() Compared values are not the same Actual (workingCopy.size()): 1 Expected (2) : 2 Change-Id: I6f7d05fb70af3def5fc371a9783b606309686e32 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
ef403a4515
commit
b94b7b3ee6
@@ -106,15 +106,21 @@ private:
|
||||
bool m_runGarbageCollector;
|
||||
};
|
||||
|
||||
class CPPTOOLS_EXPORT ProjectOpenerAndCloser
|
||||
class CPPTOOLS_EXPORT ProjectOpenerAndCloser : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ProjectOpenerAndCloser();
|
||||
ProjectOpenerAndCloser(bool waitForFinishedGcOnDestruction = false);
|
||||
~ProjectOpenerAndCloser(); // Closes opened projects
|
||||
|
||||
ProjectInfo open(const QString &projectFile);
|
||||
ProjectInfo open(const QString &projectFile, bool configureAsExampleProject = false);
|
||||
|
||||
private:
|
||||
void onGcFinished();
|
||||
|
||||
bool m_waitForFinishedGcOnDestruction;
|
||||
bool m_gcFinished;
|
||||
QList<ProjectExplorer::Project *> m_openProjects;
|
||||
};
|
||||
|
||||
@@ -132,6 +138,14 @@ private:
|
||||
bool m_isValid;
|
||||
};
|
||||
|
||||
class VerifyCleanCppModelManager
|
||||
{
|
||||
public:
|
||||
VerifyCleanCppModelManager() { verify(); }
|
||||
~VerifyCleanCppModelManager() { verify(); }
|
||||
static void verify();
|
||||
};
|
||||
|
||||
class FileWriterAndRemover
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user