qt6-bb10/tests/auto/corelib
Assam Boudjelthia 89f89cedc0 Android: fix Android assets handler not listing dirs with only sub dirs
Amends edd983071e.

Remove redundant calls to AAssetDir_getNextFileName() in
AndroidAbstractFileEngine::setFileName(). It's enough to check
if AAssetManager_open() returns null and AAssetManager_openDir() is
valid for the provided asset file name.

As part of this fix, add some unit tests to cover/ensure assets
listing/iterating works as expected.

Fixes: QTBUG-107627
Pick-to: 6.4 6.2 5.15
Change-Id: I37ae9cb64fbbc60699bb748895f77fd6a34fae1f
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-10-21 16:54:29 +03:00
..
animation Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
global Long live Q_UNREACHABLE_RETURN()! 2022-10-15 22:11:47 +02:00
io Autotest/Unix: request zero-sized core dumps for crashing code 2022-10-14 08:18:53 -07:00
itemmodels Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
kernel Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
mimetypes Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
platform Android: fix Android assets handler not listing dirs with only sub dirs 2022-10-21 16:54:29 +03:00
plugin QLibrary: fix loading multiple versions of a library 2022-10-20 15:38:47 -07:00
serialization Ignore the warning for all types in tst_QCborValue's mapFromArray*() 2022-10-18 14:13:28 +02:00
text tst_QChar::fromUcs4(): deduplicate a test-case 2022-10-18 14:13:28 +02:00
thread tst_QAtomicInt:fetchAndAdd(): remove two duplicate data rows 2022-10-17 15:53:32 +02:00
time tst_QTime: fix two duplicated test data tags 2022-10-17 15:53:32 +02:00
tools tst_QSet: fix flakiness after we removed the fixed, non-zero seed 2022-10-18 14:15:51 +00:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00