qt5base-lts/tests/auto/tools/qmakelib
Oswald Buddenhagen e2de837198 qmake: let QMakeVfs::readFile() report ENOFILE explicitly
when the QFile object is already constructed, querying whether the file
exists is actually cheap, so do it right away instead of later on
demand. that makes the calling code a bit cleaner.

fwiw, that we need to explicitly query the file's existence at all is a
result of QFile's completely useless error "codes" (which merely say
which function failed, as if the caller would not know).

Change-Id: Ifec39d05b1713d8128046f679287e510f10e45dc
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
(cherry picked from qtcreator/5ba32e3484ead2e35cc7732dcd59a97e7459dbfd)
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2018-03-29 18:14:58 +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 qmake: let QMakeVfs::readFile() report ENOFILE explicitly 2018-03-29 18:14:58 +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