qt5base-lts/tests/auto/tools/qmakelib
Edward Welbourne 58b373c9e3 Make sure $$relative_path() uses an absolute path as its first arg
Thanks to QTBUG-61373, this qmake function was called with
/usr/local/5.10.1 as baseDir, which isn't absolute, leading to an
assertion failure.  We could raise the error within qmake but it
proved easier to simply resolve any non-absolute baseDir using PWD,
before trying to use it as an absolute path.

Did the same for $$absolute_path().  Documented both.  Adjusted the
assert that caught this to report any non-absolute path that upsets
it.  Added simple tests, fixed an existing test.

Task-number: QTBUG-66156
Change-Id: Icfef2e2f5b236e071177c9beffa38d71bf404292
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-03-22 08:40:45 +00:00
..
testdata qmake: let discard_from() discard function definitions as well 2016-11-15 22:44:23 +00:00
.gitignore add test for the qmake library 2015-02-25 13:54:33 +00:00
evaltest.cpp Make sure $$relative_path() uses an absolute path as its first arg 2018-03-22 08:40:45 +00:00
parsertest.cpp qmake: introduce magic bypassNesting() scope 2016-12-13 18:56:20 +00:00
qmakelib.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
tst_qmakelib.cpp qmake: require a drive in a DOS path for it to be absolute 2018-01-18 13:46:54 +00:00
tst_qmakelib.h qmake: require a drive in a DOS path for it to be absolute 2018-01-18 13:46:54 +00:00