tst_QStringBuilder: remove test that doesn't test anything

We now have a more reliable test for the case with freeSpaceAtBegin(),
so remove the old test, after we verified it actually doesn't even
test that case.

Task-number: QTBUG-99330
Pick-to: 6.3 6.2
Change-Id: Ic108a722cd2fef1e63a05085a76d7572d1f8c875
Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
This commit is contained in:
Marc Mutz 2021-12-21 07:45:59 +01:00
parent bd40e43695
commit b6239f70f5

View File

@ -380,16 +380,6 @@ void runScenario()
QByteArray ba2 = withZero;
ba2 += ba2 P withZero;
QCOMPARE(ba2, QByteArray(withZero + withZero + withZero));
// With space allocated in front, mirroring what happens with QHttpMultiPart in QNAM
QByteArray byteArray;
byteArray.reserve(70);
byteArray.insert(0, "multipart/");
byteArray.insert(byteArray.size(), "mixed");
QEXPECT_FAIL("", "there's no freeSpaceAtBegin()?!", Continue);
QVERIFY(byteArray.data_ptr().freeSpaceAtBegin() > 0);
byteArray += "; boundary=\"" P QByteArray(30, 'o') P '"';
QCOMPARE(byteArray, "multipart/mixed; boundary=\"oooooooooooooooooooooooooooooo\"");
}
checkItWorksWithFreeSpaceAtBegin(QByteArray(UTF8_LITERAL), "1234");