linux-stable/tools/testing/selftests/media_tests
Ivan Orlov e42bf3cfed selftests: media_tests: Add new subtest to video_device_test
Add new subtest to video_device_test to cover the VIDIOC_G_PRIORITY
and VIDIOC_S_PRIORITY ioctl calls. This test tries to set the priority
associated with the file descriptior via ioctl VIDIOC_S_PRIORITY
command from V4L2 API. After that, the test tries to get the new
priority via VIDIOC_G_PRIORITY ioctl command and compares the result
with the v4l2_priority it set before. At the end, the test restores the
old priority.

This test will increase the code coverage for video_device_test, so
I think it might be useful. Additionally, this patch will refactor the
video_device_test a little bit, according to the new functionality.

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-06-12 16:39:10 -06:00
..
.gitignore
bind_unbind_sample.sh
Makefile selftests: media_tests: Fix incorrect kernel headers search path 2023-02-13 09:09:45 -07:00
media_dev_allocator.sh
media_device_open.c
media_device_test.c
open_loop_test.sh
regression_test.txt
video_device_test.c selftests: media_tests: Add new subtest to video_device_test 2023-06-12 16:39:10 -06:00