qt5base-lts/tests/auto
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
..
android
bic/data Add binary compatibility files for 5.12 for QtBase 2018-12-21 19:42:57 +00:00
cmake Export modules' enabled/disabled features to cmake 2018-09-28 13:10:28 +00:00
concurrent
corelib Fix canonicalFilePath() for files with trailing slashes 2019-05-21 13:59:34 +02:00
dbus Merge remote-tracking branch 'origin/5.12' into 5.13 2019-02-19 01:00:08 +01:00
gui Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-16 01:00:11 +02:00
guiapplauncher
installed_cmake
network Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-10 01:00:08 +02:00
opengl qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
other Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-09 13:06:11 +00:00
printsupport tst_QPrinter: stabilize qprinter test 2019-01-20 13:39:54 +00:00
shared Read font selection flags and use them when querying for metrics 2018-11-30 16:15:03 +00:00
sql Merge remote-tracking branch 'origin/5.12' into 5.13 2019-02-21 01:00:08 +01:00
testlib Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-09 13:06:11 +00:00
tools Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-12 01:00:08 +02:00
widgets Merge remote-tracking branch 'origin/5.12' into 5.13 2019-05-02 09:39:31 +02:00
xml
auto.pro
network-settings.h Extend the default retry times of QtNetworkSettings::verifyConnection 2019-01-23 15:28:33 +00:00
testserver.pri Disable Docker-based test servers on macOS temporarily 2019-02-06 22:04:54 +00:00