qt5base-lts/tests/auto/corelib
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
..
animation Extend blacklisting of tst_qparallelanimationgroup tests to macOS 10.13 2018-09-24 21:13:30 +00:00
codecs Add tests for decoding too-short UTF-8 sequences 2018-09-25 22:14:07 +00:00
global Merge remote-tracking branch 'origin/5.11' into 5.12 2018-11-27 01:00:09 +01:00
io Use a more robust test for absolute paths in QDir 2019-01-13 18:18:10 +00:00
itemmodels Fix QStringListModel::setData to check for actual changes 2018-12-24 08:07:36 +00:00
kernel Fix warnings about uninitialized variables 2019-01-06 10:14:36 +00:00
mimetypes QMimeType: Use default key as fallback for comment() property 2018-11-02 08:27:10 +00:00
plugin Avoid invalid qmake code in macOS-specific pluginloader test 2018-11-30 14:47:29 +00:00
serialization Merge remote-tracking branch 'origin/5.11' into 5.12 2018-11-27 01:00:09 +01:00
statemachine tst_QStateMachine: Don't use unconditional waits 2018-04-04 07:07:40 +00:00
thread Re-enable thread autotests 2018-09-25 22:35:40 +00:00
tools QRegularExpression: anchor wildcard pattern 2018-12-15 13:24:16 +00:00
corelib.pro Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00