qt6-bb10/tests/auto/corelib/io/qfile
Thiago Macieira 5d2240718c Autotest: fix blacklisted test about position on non-regular files
On BSD systems (tested on macOS and FreeBSD), you *can* lseek(2) or
ftell(3) on a pipe and get its current position. But QFile will not get
the position when the file is sequential, so we need to return 0.

Technically speaking, we ought to do the same for block devices, but if
you're redirecting stdin, stdout or stderr in the unit test to or from a
block device, you deserve the extra work to add that yourself to the
test.

Change-Id: I3868166e5efc45538544fffd14d8a74e92963fe7
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
2017-08-08 21:48:28 +00:00
..
resources
stdinprocess
test Fix tst_qfile::size for configurations using builtin test data 2017-06-19 07:05:57 +00:00
.gitattributes
.gitignore
BLACKLIST Autotest: fix blacklisted test about position on non-regular files 2017-08-08 21:48:28 +00:00
copy-fallback.qrc
dosfile.txt
forCopying.txt
forRenaming.txt
noendofline.txt
qfile.pro
qfile.qrc
rename-fallback.qrc
testfile.txt
testlog.txt
tst_qfile.cpp Autotest: fix blacklisted test about position on non-regular files 2017-08-08 21:48:28 +00:00
two.dots.file