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:
Christian Stenger
2014-08-25 13:18:41 +02:00
parent b11f5c2290
commit 550db7d1d1

View File

@@ -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