aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp
diff options
context:
space:
mode:
authorBernd Weimer <bweimer@blackberry.com>2014-04-14 09:42:52 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-24 10:14:59 +0200
commit2e671bfedd5129d5043bf7da1d484aacc63bcc05 (patch)
treea891a23bafac2ffabe0ec118bb4be8506a72a3b3 /tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp
parentaedcd57c84ac9d6b74816c13bdf3fde31e1132b5 (diff)
Fix accessibility auto test
Prevent crash on platforms that don't support accessibility by skipping tests. Change-Id: Ie1648399d71546d222d6b37ce57f649b4cac303b Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp')
-rw-r--r--tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp b/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp
index 54eb3509bd..7d50e130f2 100644
--- a/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp
+++ b/tests/auto/quick/qquickaccessible/tst_qquickaccessible.cpp
@@ -131,6 +131,8 @@ void tst_QQuickAccessible::initTestCase()
QQmlDataTest::initTestCase();
QTestAccessibility::initialize();
QPlatformIntegration *pfIntegration = QGuiApplicationPrivate::platformIntegration();
+ if (!pfIntegration->accessibility())
+ QSKIP("This platform does not support accessibility");
pfIntegration->accessibility()->setActive(true);
}