aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@qt.io>2016-06-06 12:17:34 +0200
committerAndy Nichols <andy.nichols@qt.io>2016-06-07 09:18:05 +0000
commit4f501e364e2cc89efdc9d41b0aee52ff000393fe (patch)
treeb8cf65a0dcfdde15ab3ce345a8a39e7e69b8c3bb /tests/benchmarks
parent787918e7f2885272754f24cf589e65a9193c679b (diff)
Disable BoomBlock qml compilation benchmark when building without OpenGL
The BoomBlock benchmark imports the Particles module which requires OpenGL, so it will be skipped for -no-opengl builds. Change-Id: I1754461f0920e85a51c5b1d5b3f5c8b2c5d26e18 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/qml/compilation/tst_compilation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/benchmarks/qml/compilation/tst_compilation.cpp b/tests/benchmarks/qml/compilation/tst_compilation.cpp
index 3f2cb5b94f..690e193b53 100644
--- a/tests/benchmarks/qml/compilation/tst_compilation.cpp
+++ b/tests/benchmarks/qml/compilation/tst_compilation.cpp
@@ -75,7 +75,9 @@ void tst_compilation::boomblock()
QQmlComponent c(&engine);
c.setData(data, QUrl());
}
-
+#ifdef QT_NO_OPENGL
+ QSKIP("boomblock imports Particles which requires OpenGL Support");
+#endif
QBENCHMARK {
QQmlComponent c(&engine);
c.setData(data, QUrl());