From 9d22f6e14e249713108c8adcc8705c39303f0628 Mon Sep 17 00:00:00 2001 From: Shuah Khan Date: Fri, 12 Feb 2016 17:43:31 -0700 Subject: selftests: add a new test for Media Controller API This test opens user specified Media Device and calls MEDIA_IOC_DEVICE_INFO ioctl in a loop once every 10 seconds. This test is for detecting errors in device removal path. Usage: sudo ./media_device_test -d /dev/mediaX While test is running, remove the device and ensure there are no use after free errors and other Oops in the dmesg. Enable KaSan kernel config option for use-after-free error detection. Signed-off-by: Shuah Khan --- tools/testing/selftests/media_tests/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/media_tests/.gitignore (limited to 'tools/testing/selftests/media_tests/.gitignore') diff --git a/tools/testing/selftests/media_tests/.gitignore b/tools/testing/selftests/media_tests/.gitignore new file mode 100644 index 0000000..1c07117 --- /dev/null +++ b/tools/testing/selftests/media_tests/.gitignore @@ -0,0 +1 @@ +media_device_test -- cgit v1.1