qt5base-lts/tests/auto/corelib/io/qfileinfo
Thiago Macieira 7cd2d2b751 tst_QFileInfo: fix running with systems without /etc/passwd
Clear Linux containers running as root may have no /etc/passwd. But
they'll have /etc/machine-id because systemd creates that. Also test
/proc/version (a Linux-specific file) because that isn't writeable even
by root.

Take the opportunity to check with access() instead of assuming root and
only root can write to the file.

Change-Id: Ibdc95e9af7bd456a94ecfffd1603e8359604752b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-04-09 10:55:25 -03:00
..
resources Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
.gitignore Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
qfileinfo.pro Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
qfileinfo.qrc Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
testdata.qrc Use qrc for test data in QFileInfo test on all platforms 2015-02-18 12:09:16 +00:00
tst_qfileinfo.cpp tst_QFileInfo: fix running with systems without /etc/passwd 2020-04-09 10:55:25 -03:00