From cf17206a9d41b6e1b104fe4b99203060e5804f6e Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Mon, 28 Nov 2022 21:14:45 +0100 Subject: [PATCH] tst_QByteArrayLarge::initTestCase: Skip tests under ASAN Change-Id: I0095346fed64d588940f9eddd7ce370e0fecb940 Reviewed-by: Thiago Macieira --- .../text/qbytearray_large/tst_qbytearray_large.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/auto/corelib/text/qbytearray_large/tst_qbytearray_large.cpp b/tests/auto/corelib/text/qbytearray_large/tst_qbytearray_large.cpp index 65ba2f54ff..24c851faa2 100644 --- a/tests/auto/corelib/text/qbytearray_large/tst_qbytearray_large.cpp +++ b/tests/auto/corelib/text/qbytearray_large/tst_qbytearray_large.cpp @@ -15,6 +15,7 @@ class tst_QByteArrayLarge : public QObject Q_OBJECT private slots: + void initTestCase(); #ifndef QT_NO_COMPRESS void qCompress_data(); void qCompress(); @@ -26,6 +27,13 @@ private slots: void base64_2GiB(); }; +void tst_QByteArrayLarge::initTestCase() +{ +#if defined(QT_ASAN_ENABLED) + QSKIP("Skipping QByteArray tests under ASAN as they are too slow"); +#endif +} + #ifndef QT_NO_COMPRESS void tst_QByteArrayLarge::qCompress_data() {