forked from qt-creator/qt-creator
Valgrind: Move some memcheck auto tests into plugin
Due to changed dependencies it is nowadays necessary to have more of the plugin infrastructure at hand. Moving memcheck related tests to be able to execute them as QC plugin unit test. Change-Id: Iab492b3cb87728425b950ca9387edf292d895350 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -32,6 +32,11 @@
|
||||
#include "valgrindsettings.h"
|
||||
#include "valgrindconfigwidget.h"
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
# include "valgrindmemcheckparsertest.h"
|
||||
# include "valgrindtestrunnertest.h"
|
||||
#endif
|
||||
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
#include <coreplugin/icontext.h>
|
||||
#include <coreplugin/icore.h>
|
||||
@@ -117,5 +122,14 @@ ValgrindGlobalSettings *ValgrindPlugin::globalSettings()
|
||||
return theGlobalSettings;
|
||||
}
|
||||
|
||||
QList<QObject *> ValgrindPlugin::createTestObjects() const
|
||||
{
|
||||
QList<QObject *> tests;
|
||||
#ifdef WITH_TESTS
|
||||
tests << new Test::ValgrindMemcheckParserTest << new Test::ValgrindTestRunnerTest;
|
||||
#endif
|
||||
return tests;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Valgrind
|
||||
|
||||
Reference in New Issue
Block a user