commit | 6a080dbc1012d56cabb9688dd3ae6a9df6281ae0 | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | Thu Nov 25 14:14:32 2021 +0100 |
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | Thu Dec 02 12:03:34 2021 +0100 |
tree | 4524850b1a4f272615e6a7b18499862019397145 | |
parent | c01c6f78adde6ecfd0ef800e381aed27bea7808b [diff] |
v4l2-compliance: detect no-mmu systems Check if the OS has an MMU. If not, then skip tests that only work for systems that have an MMU. The safest and most generic method I found is the FIONBIO ioctl that is available for any file descriptor and is a write-only ioctl, so no memory will be accidentally written. On a MMU system this will return EFAULT, and on a ucLinux system this will return 0. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>