Workaround compiler issue
I can't figure this one out, but it seems to be a clang compiler bug that is triggered in association with -DQT_NO_DEBUG. Changing the test from QVERIFY to QCOMPARE keeps the intent and the check, but makes the failure go away. It can't hurt... Change-Id: Ib34e5e850e5b731d729e417430dec55e372805ac Reviewed-by: Chris Adams <christopher.adams@nokia.com>
This commit is contained in:
parent
558049e972
commit
3fe1eed053
@ -1216,7 +1216,7 @@ void tst_QArrayData::literals()
|
||||
#endif
|
||||
|
||||
QVERIFY(v.isSharable());
|
||||
QVERIFY(v.constBegin() + v.size() == v.constEnd());
|
||||
QCOMPARE(v.constBegin() + v.size(), v.constEnd());
|
||||
|
||||
for (int i = 0; i < 10; ++i)
|
||||
QCOMPARE(const_(v)[i], char('A' + i));
|
||||
|
Loading…
Reference in New Issue
Block a user