qt6-bb10/tests/auto/corelib
Marc Mutz 564be117fe tst_QByteArrayView: expose constExpr() test to non-ubsan GCC builds
Because of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962, and
because marking constExpr() as __attribute__((no_sanitize_undefined))
doesn't fix a thing, we opted to disable the triggering parts of
constExpr() from all GCC builds.

This is, of course, unfortunate, since it meaningfully reduces
compile-time coverage in the general case for a rather obscure build
type most won't ever use.

While GCC doesn't give us a predefined macro to check for in the .cpp
file, the cmake build system knows whether we use ubsan, so just
define a macro of our own.

As a drive-by, simplify GCC detection by using Q_CC_GCC_ONLY.

Amends de6a004bc5.

Pick-to: 6.7 6.5 6.2
Task-number: QTBUG-101307
Change-Id: I4be5bd103b9d2386b2ac9fd22e0c34f9c63fee04
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-05-23 01:36:54 +02:00
..
animation Change license for tests files 2024-02-04 09:56:42 +01:00
global QLibraryInfo: add tests 2024-05-21 18:53:10 +02:00
io Exclude VxWorks from qstorageinfo tests 2024-05-16 21:36:03 +02:00
ipc QNativeIpcKey: use new comparison helper macros 2024-04-17 20:30:37 +02:00
itemmodels Extend QTest::failOnWarning() to a no-parameter fail-on-any-warning 2024-05-06 20:27:41 +02:00
kernel QVariant: do reset is_null after setValue() 2024-05-21 18:25:02 -05:00
mimetypes QMimeType: use modernize comparisons 2024-04-30 17:46:34 +02:00
platform tst_qcomobject: Reduce size of Qt-namespace 2024-05-13 15:25:36 +02:00
plugin QUuid, GUID: use new comparison helper macros 2024-05-22 23:32:56 +00:00
serialization Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00
text tst_QByteArrayView: expose constExpr() test to non-ubsan GCC builds 2024-05-23 01:36:54 +02:00
thread QtPrivate::ResultIteratorBase: use modernize comparisons 2024-05-14 00:32:35 +02:00
time Decouple the TZ and ICU backends for timezone data 2024-05-16 16:51:15 +02:00
tools tst_QSpan: fix a typo 2024-05-22 18:18:12 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00