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>
This commit is contained in:
parent
8df62598ac
commit
1b2614477f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user