qt5base-lts/tests/auto/corelib/tools
João Abecasis 796f85b611 Don't operate on bogus data, assert on preconditions instead
QVector::erase shouldn't try to make sense of iterators it doesn't own,
so the validation being done here is bogus and dangerous. Instead, it's
preferrable to assert, the user needs to ensure proper ownership.

The case of erasing an empty sequence is not checked for preconditions
to allow

    QVector v;
    v.erase(v.begin(), v.end());

, while being stricter on other uses.

Autotests were using ill-formed calls to the single argument erase()
function on an empty vector and were fixed. This function erases exactly
one element, the one pointed to by abegin and require the element exist
and be valid.

Change-Id: I5f1a6d0d8da072eae0c73a3012620c4ce1065cf0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-06-23 14:16:33 +02:00
..
qalgorithms Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qarraydata Fix compilation of tests/auto/corelib/tools with QT_STRICT_ITERATORS 2012-06-12 04:30:20 +02:00
qbitarray Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qbytearray Don't use gcc extension for QByteArrayLiteral neither 2012-06-12 22:57:22 +02:00
qbytearraymatcher Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcache Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qchar tst_QChar: drop outdated testcase 2012-06-16 21:15:08 +02:00
qcontiguouscache Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcryptographichash Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore] 2012-05-04 12:45:47 +02:00
qdate Add leading zeros to years below 1000 in QDate::toString(). 2012-06-20 12:38:32 +02:00
qdatetime Make QDateTime::fromString()/Time::fromString() adhere to ISO 8601. 2012-06-20 12:38:32 +02:00
qeasingcurve Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore] 2012-05-04 12:45:47 +02:00
qelapsedtimer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qexplicitlyshareddatapointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfreelist Mark tst_qfreelist as parallel-safe 2012-06-01 03:16:04 +02:00
qhash Fix compilation of tests/auto/corelib/tools with QT_STRICT_ITERATORS 2012-06-12 04:30:20 +02:00
qline Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qlist Add CONFIG+=parallel_test to suspected parallel-safe tests. 2012-05-28 07:33:01 +02:00
qlocale Check LANGUAGE as well in QSystemLocale::fallbackLocale 2012-06-06 15:29:34 +02:00
qmap Fix loop conditions, after warnings from clang 2012-03-28 09:36:33 +02:00
qmargins Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qpair QPair: specialise QTypeInfo based on the typeinfos of its arguments 2012-03-01 14:26:06 +01:00
qpoint Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qqueue Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qrect Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qregexp QRegExp: fix usage of uninitialized values 2012-05-19 01:45:04 +02:00
qregularexpression QRegularExpression: add more test data 2012-04-13 15:25:19 +02:00
qringbuffer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscopedpointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscopedvaluerollback Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qset containers: add C++11-style c{begin,end}() as alias for const{Begin,End}() 2012-03-17 09:10:57 +01:00
qsharedpointer Add some internal API for extracting a QSharedPointer<T> from QVariant. 2012-06-20 15:45:07 +02:00
qsize Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsizef Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstring Update the Unicode related autotests 2012-06-10 15:57:57 +02:00
qstring_no_cast_from_bytearray Ensure qstring.h compiles with QT_NO_CAST_FROM_BYTEARRAY 2012-05-09 12:07:47 +02:00
qstringbuilder Fix crash in QStringBuilder when concatenating data-less QLatin1String 2012-06-01 01:22:06 +02:00
qstringlist make QStringList::sort() to take a Qt::CaseSensitivity param 2012-04-12 10:39:22 +02:00
qstringmatcher Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qstringref Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qtextboundaryfinder Make QTBF autotest support SMP code points in the test data 2012-06-16 21:14:35 +02:00
qtime Make QDateTime::fromString()/Time::fromString() adhere to ISO 8601. 2012-06-20 12:38:32 +02:00
qtimeline Make QTimeLine test significant. 2012-04-26 09:27:25 +02:00
qvarlengtharray Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qvector Don't operate on bogus data, assert on preconditions instead 2012-06-23 14:16:33 +02:00
tools.pro Ensure qstring.h compiles with QT_NO_CAST_FROM_BYTEARRAY 2012-05-09 12:07:47 +02:00