diff --git a/tests/auto/corelib/text/qstring/tst_qstring.cpp b/tests/auto/corelib/text/qstring/tst_qstring.cpp index e63270bfe4f..29d794490ba 100644 --- a/tests/auto/corelib/text/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/text/qstring/tst_qstring.cpp @@ -2467,7 +2467,8 @@ void tst_QString::append_special_cases() { QString a; a.insert(0, QChar(u'A')); - QVERIFY(a.capacity() >= 3); + QCOMPARE(a.size(), 1); + QVERIFY(a.capacity() > 0); a.append(QLatin1String("BC")); QCOMPARE(a, QLatin1String("ABC")); }