qt6-bb10/tests/auto/corelib
Elvis Angelaccio 3f455a4b53 Introduce QDir::isEmpty()
A directory is empty when it doesn't contain files or folders.
We can exploit QDirIterator::hasNext() to check whether this is the
case. This is efficient since it doesn't list the whole folder (in the
non-empty case).

Test cases are added for both the empty and non-empty cases.

Change-Id: I0f7e26782c0f97f9c16f928dab6cae37927875d8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-01-08 16:11:34 +00:00
..
animation QtCore: Remove Windows CE. 2016-03-30 11:22:47 +00:00
codecs tests/auto/corelib/codecs: clean up 2016-08-06 14:49:21 +00:00
global Merge remote-tracking branch 'origin/5.8' into dev 2016-12-13 09:39:20 +01:00
io Introduce QDir::isEmpty() 2017-01-08 16:11:34 +00:00
itemmodels Merge remote-tracking branch 'origin/5.7' into dev 2016-08-16 07:58:32 +02:00
json Merge remote-tracking branch 'origin/5.8' into dev 2016-11-17 14:43:26 +01:00
kernel Merge remote-tracking branch 'origin/5.8' into dev 2016-12-13 09:39:20 +01:00
mimetypes tests/auto/corelib/mimetypes: use local QThreadPool 2016-09-17 06:47:05 +00:00
plugin macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00:00
statemachine
thread Lower timeout on tst_QSemaphore::tryAcquireWithTimeout 2016-12-14 14:39:58 +00:00
tools QDateTime test: clarify overflow-check 2017-01-02 13:13:57 +00:00
xml tests/auto/corelib/xml: cleanup 2016-08-27 05:09:16 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00