aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/projectexplorer/outputparser_test.cpp4
-rw-r--r--src/plugins/projectexplorer/outputparser_test.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp
index 09dc063979..7d9952c100 100644
--- a/src/plugins/projectexplorer/outputparser_test.cpp
+++ b/src/plugins/projectexplorer/outputparser_test.cpp
@@ -29,6 +29,8 @@
#include "outputparser_test.h"
+#if defined(WITH_TESTS)
+
#include <QtTest>
using namespace ProjectExplorer;
@@ -157,3 +159,5 @@ void OutputParserTester::reset()
m_receivedTasks.clear();
m_receivedOutput = QString();
}
+
+#endif
diff --git a/src/plugins/projectexplorer/outputparser_test.h b/src/plugins/projectexplorer/outputparser_test.h
index 89b2292c38..58f51f2d32 100644
--- a/src/plugins/projectexplorer/outputparser_test.h
+++ b/src/plugins/projectexplorer/outputparser_test.h
@@ -30,6 +30,8 @@
#ifndef OUTPUTPARSER_TESTER_H
#define OUTPUTPARSER_TESTER_H
+#if defined(WITH_TESTS)
+
#include "projectexplorer_export.h"
#include "ioutputparser.h"
@@ -86,4 +88,6 @@ private:
Q_DECLARE_METATYPE(ProjectExplorer::OutputParserTester::Channel)
+#endif
+
#endif // OUTPUTPARSER_TESTER_H