summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/tests.pro6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tests.pro b/tests/tests.pro
index 73a5dc457..55b817602 100644
--- a/tests/tests.pro
+++ b/tests/tests.pro
@@ -1,3 +1,7 @@
TEMPLATE = subdirs
-!package: SUBDIRS += auto benchmarks
+!package: SUBDIRS += auto
+
+# Benchmarks make sense in release mode only.
+# Disable them for code coverage.
+!testcocoon: contains(QT_CONFIG,release): SUBDIRS += benchmarks