tst_QList: compile in both strict and normal iterator modes
If a class has an opt-in, the test should test both. Pick-to: 6.5 6.2 Change-Id: I3b200a2f8e96c62b0c38ae735cb9f7e6786375b3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit c198a67bfb3fea21ec06f72ea08107c4da6e88f7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d3f26e2bbd
commit
21c839636c
@ -14,6 +14,18 @@ endif()
|
||||
qt_internal_add_test(tst_qlist
|
||||
SOURCES
|
||||
tst_qlist.cpp
|
||||
DEFINES
|
||||
QT_NO_STRICT_QLIST_ITERATORS # doesn't exist, except for this test
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
)
|
||||
|
||||
qt_internal_add_test(tst_qlist_strict_iterators
|
||||
SOURCES
|
||||
tst_qlist.cpp
|
||||
DEFINES
|
||||
QT_STRICT_QLIST_ITERATORS
|
||||
tst_QList=tst_QList_strict_iterators
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
)
|
||||
|
@ -1,6 +1,12 @@
|
||||
// Copyright (C) 2021 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#ifdef QT_NO_STRICT_QLIST_ITERATORS
|
||||
# ifdef QT_STRICT_QLIST_ITERATORS
|
||||
# undef QT_STRICT_QLIST_ITERATORS
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <QTest>
|
||||
#include <QAtomicInt>
|
||||
#include <QThread>
|
||||
|
Loading…
x
Reference in New Issue
Block a user