summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/autotest/testcodeparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp
index 40bb7ab075..f12e418b22 100644
--- a/src/plugins/autotest/testcodeparser.cpp
+++ b/src/plugins/autotest/testcodeparser.cpp
@@ -324,6 +324,8 @@ void TestCodeParser::scanForTests(const QStringList &fileList, ITestParser *pars
{
if (m_parserState == Shutdown || m_testCodeParsers.isEmpty())
return;
+ if (parser && !m_testCodeParsers.contains(parser))
+ return;
if (postponed(fileList))
return;