From 6e68b4d838f35b75cbf1a79863b52f43d08defe9 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 21 Dec 2022 13:58:11 -0300 Subject: [PATCH] tst_qlogging: Skip backtrace tests under ASan ASan inserts a lot of function calls in between our calls, so they end up in the backtrace and cause unexpected results. Similar to c672f148dbf179f2e0ac94dfac7d329d50a3e4a3. Fixes: QTBUG-109559 Pick-to: 6.4 6.5 Change-Id: I69ecc04064514f939896fffd1732dd2bc0317ae4 Reviewed-by: Volker Hilsheimer --- tests/auto/corelib/global/qlogging/tst_qlogging.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/corelib/global/qlogging/tst_qlogging.cpp b/tests/auto/corelib/global/qlogging/tst_qlogging.cpp index 694646753f..0a43395ac9 100644 --- a/tests/auto/corelib/global/qlogging/tst_qlogging.cpp +++ b/tests/auto/corelib/global/qlogging/tst_qlogging.cpp @@ -725,6 +725,8 @@ void tst_qmessagehandler::qMessagePattern_data() #ifdef __GLIBC__ # if QT_CONFIG(static) // These test cases don't work with static Qt builds +# elif defined(QT_ASAN_ENABLED) + // These tests produce far more call frames under ASan # else # ifndef QT_NO_DEBUG QList expectedBacktrace = {