summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/declarative/creation
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-08 02:31:35 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-08 02:32:42 (GMT)
commit8429de44c2c5c046e403990ff04bc15ff1dee42a (patch)
treeb421b29262207e5aade912f46b225cd870118405 /tests/benchmarks/declarative/creation
parent4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca (diff)
downloadQt-8429de44c2c5c046e403990ff04bc15ff1dee42a.zip
Qt-8429de44c2c5c046e403990ff04bc15ff1dee42a.tar.gz
Qt-8429de44c2c5c046e403990ff04bc15ff1dee42a.tar.bz2
Stop benchmark from crashing.
Diffstat (limited to 'tests/benchmarks/declarative/creation')
-rw-r--r--tests/benchmarks/declarative/creation/tst_creation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/benchmarks/declarative/creation/tst_creation.cpp b/tests/benchmarks/declarative/creation/tst_creation.cpp
index 4319208..5b0004f 100644
--- a/tests/benchmarks/declarative/creation/tst_creation.cpp
+++ b/tests/benchmarks/declarative/creation/tst_creation.cpp
@@ -163,6 +163,8 @@ void tst_creation::objects_qmltype()
{
QFETCH(QByteArray, type);
QDeclarativeType *t = QDeclarativeMetaType::qmlType(type, 4, 6);
+ if (!t || !t->isCreatable())
+ QSKIP("Non-creatable type", SkipSingle);
QBENCHMARK {
QObject *obj = t->create();