qt6-bb10/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
.gitignore
qfileinfo.pro Migrate Windows system libs to external dependencies 2019-05-08 08:30:02 +00:00
qfileinfo.qrc
testdata.qrc
tst_qfileinfo.cpp tst_QFileInfo: fix running with systems without /etc/passwd 2020-04-09 10:55:25 -03:00