qt5base-lts/tests/auto/corelib/io
Volker Hilsheimer bd55a9d912 Fix canonicalFilePath() for files with trailing slashes
Such files do not exist (as per QFileInfo::exists), but on some
platforms that rely on realpath(), QFileInfo::canonicalFilePath did
not return the empty string.

Use the same logic on macOS as we already did on Android, and include
a test case. Remove the unnecessary dynamic memory allocation and
use a stack-allocated array instead, unless we use modern POSIX in
which case realpath() will alloc the memory for the result for us.

Change-Id: Ide987c68ebf00cbb7b1a66c2e9245a12c7807128
Fixes: QTBUG-44242
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2019-05-21 13:59:34 +02: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 Deprecation-fix: don't use QDir::operator=(const QString &) 2019-03-05 12:31:23 +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 Fix canonicalFilePath() for files with trailing slashes 2019-05-21 13:59:34 +02: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 Add cmdline feature to qmake 2019-02-18 07:12:14 +00: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 Fix compilation of qCDebug("", ...) with QT_NO_DEBUG_OUTPUT 2019-03-14 17:15:53 +00:00
qprocess Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-02 09:39:31 +02: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 Ignore failing test for free space on APFS 2019-04-30 10:58:13 +00:00
qtemporarydir Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qtemporaryfile QFile/QFileInfo: mark readLink() as deprecated 2019-01-23 18:49:15 +00:00
qurl Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-10 01:00:08 +02:00
qurlinternal QUrl: fix IDN conversion when the ACE form is invalid 2017-04-25 00:51:43 +00:00
qurlquery QUrlQuery: Implement initializer list constructor 2018-12-09 11:35:27 +00:00
io.pro Modernize the "settings" feature 2018-11-15 17:20:15 +00:00