forked from qt-creator/qt-creator
ClearCase: Fix plugin unit test
This patch removes the need for a specific order of executing the plugin unit tests of QtC. Change-Id: Ie12c75919c4bb582774033bc68e8a6c4f3c3a25d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -100,6 +100,7 @@
|
||||
#include <QXmlStreamReader>
|
||||
#ifdef WITH_TESTS
|
||||
#include <QTest>
|
||||
#include <coreplugin/vcsmanager.h>
|
||||
#endif
|
||||
|
||||
using namespace Core;
|
||||
@@ -2347,10 +2348,11 @@ public:
|
||||
m_editor(0)
|
||||
{
|
||||
ClearCasePlugin::instance()->setFakeCleartool(true);
|
||||
Core::VcsManager::instance()->clearVersionControlCache();
|
||||
|
||||
Utils::FileSaver srcSaver(fileName);
|
||||
srcSaver.write(QByteArray());
|
||||
srcSaver.finalize();
|
||||
|
||||
m_editor = Core::EditorManager::openEditor(fileName);
|
||||
|
||||
QCoreApplication::processEvents(); // process any pending events
|
||||
|
||||
Reference in New Issue
Block a user