From b6239f70f57961cceec5f0c5f56e3f94b1d5a92a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 21 Dec 2021 07:45:59 +0100 Subject: 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 Reviewed-by: Sona Kurazyan --- .../text/qstringbuilder/qstringbuilder1/stringbuilder.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/auto/corelib/text/qstringbuilder') diff --git a/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp b/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp index 65157e6be5..b4c5ebb968 100644 --- a/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp +++ b/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp @@ -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"); -- cgit v1.2.3