From 04fbdd25522f3a7a4b53cb553b1ac70e3f8af5e8 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Fri, 21 Mar 2025 16:05:42 +0100 Subject: [PATCH] mac a11y: ignore expected debug output from test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't confuse the next person working on this code. Pick-to: 6.9 6.8 Change-Id: I3f9ff59299a4150a96cc11d851d06539a5701a70 Reviewed-by: Tor Arne Vestbø --- tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm b/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm index 4d9c14131fd..21cde714b03 100644 --- a/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm +++ b/tests/auto/other/qaccessibilitymac/tst_qaccessibilitymac.mm @@ -5,6 +5,7 @@ #include #include #include +#include // some versions of CALayer.h use 'slots' as an identifier #define QT_NO_KEYWORDS @@ -480,6 +481,7 @@ void tst_QAccessibilityMac::singleWidgetTest() delete le; QCoreApplication::processEvents(); TestAXObject *lineEditInvalid = [[TestAXObject alloc] initWithAXUIElementRef: lineEditRef]; + QTest::ignoreMessage(QtDebugMsg, QRegularExpression("kAXErrorInvalidUIElement")); QVERIFY([[lineEditInvalid value] length] == 0); }