diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2012-02-22 01:25:28 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-22 01:53:21 +0100 |
commit | 3fe1eed0537c3b08a51295b544e0620ade1eca22 (patch) | |
tree | 36d78b800bd9ff8ae931bb9a7b3d374a30407c38 /tests/auto/corelib/tools/qarraydata | |
parent | 558049e972fde4e4ba3f60c1982b63d324385bf1 (diff) |
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>
Diffstat (limited to 'tests/auto/corelib/tools/qarraydata')
-rw-r--r-- | tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp index 00873a84d1..561491da00 100644 --- a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp +++ b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp @@ -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)); |