summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-12-21 13:58:11 -0300
committerThiago Macieira <thiago.macieira@intel.com>2022-12-21 23:22:59 -0300
commit6e68b4d838f35b75cbf1a79863b52f43d08defe9 (patch)
treee84801612c786cffe3516e1a8e114750717ea38a /tests/auto/corelib/global
parentb242457d345132083512ff56ecc4980fada2352e (diff)
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 <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/global')
-rw-r--r--tests/auto/corelib/global/qlogging/tst_qlogging.cpp2
1 files changed, 2 insertions, 0 deletions
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<QByteArray> expectedBacktrace = {