Turn tst_QString::setRawData()'s QSKIP into QEXPECT_FAIL()s
In commit 287ace562e
, part of this test
was suppressed without filing a Jira ticket (or, at least, without
recording it in the QSKIP message). Since it's a known failure, it
should at least be a QEXPECT_FAIL, not a QSKIP. Since only some of the
subsequent parts of the test fail, I used QEXPECT_FAIL(,,Continue) on
each of the failing tests.
Task-number: QTBUG-94450
Change-Id: Iebc6801210c289b4502e59116e71d5901b71aa46
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
a57f3b44bf
commit
cea662550e
@ -4106,13 +4106,14 @@ void tst_QString::setRawData()
|
||||
QVERIFY(cstr.constData() == ptr);
|
||||
QVERIFY(cstr == QString(ptr, 1));
|
||||
|
||||
QSKIP("This is currently not working.");
|
||||
// This actually tests the recycling of the shared data object
|
||||
QString::DataPointer csd = cstr.data_ptr();
|
||||
cstr.setRawData(ptr2, 1);
|
||||
QEXPECT_FAIL("", "This is currently not working: QTBUG-94450.", Continue);
|
||||
QVERIFY(cstr.isDetached());
|
||||
QVERIFY(cstr.constData() == ptr2);
|
||||
QVERIFY(cstr == QString(ptr2, 1));
|
||||
QEXPECT_FAIL("", "This is currently not working: QTBUG-94450.", Continue);
|
||||
QVERIFY(cstr.data_ptr() == csd);
|
||||
|
||||
// This tests the discarding of the shared data object
|
||||
@ -4123,6 +4124,7 @@ void tst_QString::setRawData()
|
||||
// Another test of the fallback
|
||||
csd = cstr.data_ptr();
|
||||
cstr.setRawData(ptr2, 1);
|
||||
QEXPECT_FAIL("", "This is currently not working: QTBUG-94450.", Continue);
|
||||
QVERIFY(cstr.isDetached());
|
||||
QVERIFY(cstr.constData() == ptr2);
|
||||
QVERIFY(cstr == QString(ptr2, 1));
|
||||
|
Loading…
Reference in New Issue
Block a user