diff options
author | Bernd Weimer <bweimer@blackberry.com> | 2014-05-13 18:08:42 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-14 20:10:03 +0200 |
commit | 1b2614477f42825d95bbd7a4ebc6aa91fd82e1d9 (patch) | |
tree | 607e1e43cdbfb0e29132cdcedf0196cb4a9458be /tests/auto/other/qaccessibility/tst_qaccessibility.cpp | |
parent | 8df62598ac4ee3f90c7f4b80759a5fdbf23010ab (diff) |
Fix accessibility auto test
Prevent crash on platforms that don't support accessibility by skipping
tests.
Change-Id: I42ba44df3200e0abd62797c76a5c538fb1d2757c
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto/other/qaccessibility/tst_qaccessibility.cpp')
-rw-r--r-- | tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index 54c56eb18b..8b033efa4a 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -315,6 +315,8 @@ void tst_QAccessibility::initTestCase() { QTestAccessibility::initialize(); QPlatformIntegration *pfIntegration = QGuiApplicationPrivate::platformIntegration(); + if (!pfIntegration->accessibility()) + QSKIP("This platform does not support accessibility"); pfIntegration->accessibility()->setActive(true); } |