qt5base-lts/tests/auto/corelib/io
Edward Welbourne dd5e7f1a52 Use a more robust test for absolute paths in QDir
Its filePath() and absoluteFilePath() don't trust its own
isAbsolute(), due to some infelicities on MS-Win; and kludged round a
consequent problem with resource paths; but other virtual file systems
weren't catered for.  Replace the convoluted test there with a static
bool function (so that future kludges in this area shall only need to
edit one place; and can document why they're needed) and use a more
robust test that handles all virtual file systems (by asking
QFileInfo) but falls back to QFileSystemEntry to work round the known
infelicities on MS-Win.  Add regression test for asset library paths
issue on iOS.  Ammends 27f1f84c1c.

Moved a couple of local variables to after the early return, since it
doesn't need them, in the process.

Task-number: QTBUG-70237
Change-Id: Ib3954826df40ccf816beebe5c3751497e3bf6433
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2019-01-13 18:18:10 +00:00
..
largefile Fix the fix for mmap() overflow check 2018-07-25 12:40:04 +00:00
qabstractfileengine Filesystem: Use "birth time" to avoid confusion with Unix ctime 2017-08-05 16:41:38 +00:00
qbuffer Updated license headers 2016-01-21 18:55:18 +00:00
qdataurl Updated license headers 2016-01-21 18:55:18 +00:00
qdebug Fix QMetaObject naming of class enum flag 2018-08-11 07:59:15 +00:00
qdir Use a more robust test for absolute paths in QDir 2019-01-13 18:18:10 +00:00
qdiriterator Android: fix qdiriterator test 2018-06-21 14:14:45 +00:00
qfile Reduce redundancy and duplication in tst_QFile::appendAndRead 2018-07-30 15:04:40 +00:00
qfileinfo canonicalFilePath: treat ENOTDIR as a case of file not existing 2018-07-30 15:05:29 +00:00
qfileselector Remove duplicate qnx from the platform file selector names 2017-10-24 16:43:39 +00:00
qfilesystementry Updated license headers 2016-01-21 18:55:18 +00:00
qfilesystemmetadata Filesystem: Use "birth time" to avoid confusion with Unix ctime 2017-08-05 16:41:38 +00:00
qfilesystemwatcher Modernize the "filesystemwatcher" feature 2018-09-27 08:18:55 +00:00
qiodevice Remove QSKIP and bring the test back to business 2018-10-25 11:51:42 +00:00
qipaddress QIpAddress: reject IPv6 addresses with more than 4 hex digits 2018-03-16 00:01:53 +00:00
qlockfile Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qloggingcategory Hide global qtlogging.ini from autotest 2018-04-05 05:40:07 +00:00
qloggingregistry Logging: Accept .ini files written by QSettings 2018-07-28 14:43:40 +00:00
qnodebug Improve output of Q_ENUM 2018-07-26 22:14:42 +00:00
qprocess QProcess::startDetached: Fix behavior change on Windows 2018-08-03 08:09:30 +00:00
qprocess-noapplication macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00:00
qprocessenvironment QtCore: Remove Windows CE. 2016-03-30 11:22:47 +00:00
qresourceengine QResourceFileEngine: fix use of mapped files after close() 2018-11-19 09:09:36 +00:00
qsavefile Support Alternate Data Streams in QSaveFile 2017-08-04 17:30:13 +00:00
qsettings Fix QSettings parsing of spaces after comment lines 2018-12-07 18:53:34 +00:00
qstandardpaths Merge remote-tracking branch 'origin/5.11' into 5.12 2018-11-27 01:00:09 +01:00
qstorageinfo tst_qstorageinfo: Don't add extra newlines when printing volumes 2018-03-07 14:26:00 +00:00
qtemporarydir Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qtemporaryfile Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qurl Make url normalization closer to common browser behavior 2018-12-13 05:23:12 +00:00
qurlinternal QUrl: fix IDN conversion when the ACE form is invalid 2017-04-25 00:51:43 +00:00
qurlquery Updated license headers 2016-01-21 18:55:18 +00:00
io.pro Modernize the "settings" feature 2018-11-15 17:20:15 +00:00