qt5base-lts/tests/auto/corelib
Axel Spoerl ccd8a496cf QXmlStreamReader::readNextStartElement() - return false on document end
The method reads the next element in a loop, as long as valid elements
exist. Within the loop, it returns
- false if the end of an element has been reached
- true if a new element has started

When the document end has been reached, the loop continues, until
readNext() returns Invalid. Then, PrematureEndOfDocumentError is launched.

This is wrong, because reading beyond the document end is caused by a
missing return condition in the loop.

=> Treat document end like element end and return false without
reading beyond it.

=> Test correct behavior in tst_QXmlStream::readNextStartElement()

Fixes: QTBUG-25944
Pick-to: 6.6 6.5 6.2
Change-Id: I0160b65880756a2be541e9f55dc79557fcb1f09f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-08-15 07:16:31 +02:00
..
animation tst_QParallelAnimationGroup: fix memleak 2023-07-14 14:56:03 +02:00
global Make qYieldCpu() public API 2023-07-25 07:21:56 -07:00
io tst_QFile: restrict to running on Linux 2023-08-03 20:49:51 -07:00
ipc QNativeIpcKey: add qHash() function 2023-07-25 12:31:04 +02:00
itemmodels tst_QSortFilterProxyModel: fix mem-leaks II: sortStable() 2023-07-19 04:51:26 +00:00
kernel QEventDispatcher: test with glib disabled too 2023-08-11 16:45:40 +03:00
mimetypes tst_QMimeDatabase{Xml,Cache}: make the two siblings behave the same 2023-08-09 23:57:21 +02:00
platform CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
plugin Remove QUuid(quint128) constructor again 2023-08-14 20:13:54 +00:00
serialization QXmlStreamReader::readNextStartElement() - return false on document end 2023-08-15 07:16:31 +02:00
text tst_QTextBoundaryFinder: clean out the last two foreach uses 2023-08-11 19:58:01 +02:00
thread Tests: Fix typo in qfuture test 2023-08-07 23:56:10 +02:00
time Update QTimeZone data to CLDR v43 2023-08-07 19:51:09 +02:00
tools CMake: remove check for cxx11_future 2023-08-02 12:36:18 -07:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00