Commit 550db7d1 authored by Christian Stenger's avatar Christian Stenger

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's avatarOrgad Shaneh <orgads@gmail.com>
parent b11f5c22
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment