ClangStaticAnalyzer: Start tool directly in test

Removes the only user of DEBUGGER_EXPORT void runAction(Core::Id actionId)

Change-Id: Ia26577e07ccc8a556882d99d6dd9f9c29c3bc883
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
hjk
2016-05-31 13:48:37 +02:00
parent 3ac867c8eb
commit 58f25a3260
3 changed files with 1 additions and 10 deletions

View File

@@ -29,7 +29,6 @@
#include "clangstaticanalyzertool.h"
#include "clangstaticanalyzerutils.h"
#include <debugger/analyzer/analyzermanager.h>
#include <cpptools/cppmodelmanager.h>
#include <cpptools/cpptoolstestcase.h>
#include <projectexplorer/kitinformation.h>
@@ -44,7 +43,6 @@
#include <QTimer>
#include <QtTest>
using namespace Debugger;
using namespace ProjectExplorer;
using namespace Utils;
@@ -89,7 +87,7 @@ void ClangStaticAnalyzerUnitTests::testProject()
CppTools::Tests::ProjectOpenerAndCloser projectManager;
const CppTools::ProjectInfo projectInfo = projectManager.open(projectFilePath, true);
QVERIFY(projectInfo.isValid());
Debugger::runAction(ClangStaticAnalyzerActionId);
m_analyzerTool->startTool();
QSignalSpy waiter(m_analyzerTool, SIGNAL(finished(bool)));
QVERIFY(waiter.wait(30000));
const QList<QVariant> arguments = waiter.takeFirst();