qt5base-lts/qmake/library
Edward Welbourne e86f3c0188 qmake: require a drive in a DOS path for it to be absolute
For Q_OS_WIN, a path is only truly absolute if it includes a drive
letter; merely starting with a slash is not enough.  (We can't support
UNC paths, so don't even try: qmake runs various commands in the
source directory using CMD.exe, which doesn't support UNC as PWD.)
This requires, when resolving a path relative to a root, transcribing
the root's drive to such not-quite-absolute paths.

Changed QMakeGlobals, $$absolute_path() and $$relative_path() to now
use IoUtils::resolvePath() rather than delegating to QDir's absolute
path method, since that doesn't correctly recognize the need for a
drive letter (and qmake did run into problems with some paths, from
splitPathList and a failing test, as a result).

Moved existing ioUtils tests for handling of relative / absolute paths
out into separate functions and expanded significantly.  Fixed some
existing tests to use an absolute path where one is needed; added two
tests involving driveless (but rooted) paths; and fixed the test init
to set a value for QT_HOST_DATA/src property (the lack of which lead
to an assertion failure with this fix).

Task-number: QTBUG-50839
Change-Id: I2bfc13c1bfbe1ae09997274622ea55cb3de31b43
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-01-18 13:46:54 +00:00
..
ioutils.cpp qmake: require a drive in a DOS path for it to be absolute 2018-01-18 13:46:54 +00:00
ioutils.h Preserve last modification timestamps of installed directories 2017-05-02 10:27:15 +00:00
proitems.cpp qmake: make yet more use of ProString::toQStringRef() 2017-08-26 12:11:35 +00:00
proitems.h qmake: remove seemingly pointless QString::detach() calls 2017-08-26 12:11:57 +00:00
qmake_global.h Updated license headers 2016-01-21 18:55:18 +00:00
qmakebuiltins.cpp qmake: require a drive in a DOS path for it to be absolute 2018-01-18 13:46:54 +00:00
qmakeevaluator_p.h qmake: make yet more use of ProString::toQStringRef() 2017-08-26 12:11:35 +00:00
qmakeevaluator.cpp qmake: remove pointless use of raw data in $$[QMAKEFEATURES] access 2017-08-26 12:12:02 +00:00
qmakeevaluator.h qmake: remove pointless use of raw data in $$[QMAKEFEATURES] access 2017-08-26 12:12:02 +00:00
qmakeglobals.cpp qmake: require a drive in a DOS path for it to be absolute 2018-01-18 13:46:54 +00:00
qmakeglobals.h add a bunch of complementary options to -after 2017-02-06 16:34:17 +00:00
qmakeparser.cpp Change source identifier type in ProString 2017-08-15 10:54:50 +00:00
qmakeparser.h Change source identifier type in ProString 2017-08-15 10:54:50 +00:00
qmakevfs.cpp Merge remote-tracking branch 'origin/5.6' into 5.7 2016-10-01 22:15:55 +02:00
qmakevfs.h Updated license headers 2016-01-21 18:55:18 +00:00