diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-08 02:31:35 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-08 02:32:42 (GMT) |
commit | 8429de44c2c5c046e403990ff04bc15ff1dee42a (patch) | |
tree | b421b29262207e5aade912f46b225cd870118405 /tests/benchmarks/declarative/creation | |
parent | 4ffb2a7a27ef5f06672e5f668e46d1657fa3e7ca (diff) | |
download | Qt-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.cpp | 2 |
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(); |