qt6-bb10/tests/auto/corelib
Ahmad Samir 55a8050d1e QDirIterator: don't crash with next() after hasNext() returned false
The typical use-case is calling hasNext() first before using next, but
the API docs say that calling next() even when hasNext() is false,
should just return an empty string.

[ChangeLog][QtCore][QDirIterator] Fixed a crash that happened if you
called next() after hasNext() had already returned false. Ideally you
should never call next() without first calling hasNext() as that could
lead to unexpected results (for example, infinite loops).

Fixes: QTBUG-130142
Change-Id: If0a8b1fe7dbd13b45793409a7a241e53c7257f24
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit c7691842f743f568a073582c8f0cacd6ee188f98)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-10-18 01:52:28 +00:00
..
animation Change license for tests files 2024-02-04 09:56:42 +01:00
global Tests: suppress has_denorm deprecation 2024-09-06 14:38:21 +00:00
io QDirIterator: don't crash with next() after hasNext() returned false 2024-10-18 01:52:28 +00:00
ipc ipctestcommon.h: port away from qsnprintf() 2024-07-30 16:47:32 +00:00
itemmodels QConcatenateTablesProxyModel: react to row and column moves 2024-09-13 17:44:05 +00:00
kernel QTranslator: rewrite loadLocale test, include failing cases 2024-10-10 11:21:41 +00:00
mimetypes Update tika-mimetypes.xml from upstream 2024-08-29 04:16:36 +00:00
platform Android: Add tests for QtAbstractListModel 2024-09-19 17:54:39 +00:00
plugin tst_QPluginLoader: use qCpuHasFeature instead of __builtin_cpu_supports 2024-09-05 12:29:51 +00:00
serialization Tests: suppress has_denorm deprecation 2024-09-06 14:38:21 +00:00
text Remove a duplicate inclusion of qlocale_data_p.h 2024-10-14 17:15:03 +02:00
thread QThreadPool: fix regression with negative expiryTimeout 2024-10-15 12:45:00 +00:00
time Remove untruth from QDateTime::fromString() documentation 2024-10-17 16:18:37 +00:00
tools QTypeRevision: fix support for 8-bit signed segments 2024-09-14 16:38:08 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00